Allow to clear the cache if admin.maintenance, as stated in the docs

This commit is contained in:
Flavio Copes
2016-12-31 11:21:38 +01:00
parent 34da752f70
commit 92eb33493e

View File

@@ -1102,7 +1102,7 @@ class AdminController extends AdminBaseController
*/
protected function taskClearCache()
{
if (!$this->authorizeTask('clear cache', ['admin.cache', 'admin.super'])) {
if (!$this->authorizeTask('clear cache', ['admin.cache', 'admin.super', 'admin.maintenance'])) {
return false;
}