From 92eb33493e8ac4a50e05eda5646765351e522652 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Sat, 31 Dec 2016 11:21:38 +0100 Subject: [PATCH] Allow to clear the cache if admin.maintenance, as stated in the docs --- classes/admincontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/admincontroller.php b/classes/admincontroller.php index 5391e944..64e358f7 100644 --- a/classes/admincontroller.php +++ b/classes/admincontroller.php @@ -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; }