mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-03 13:20:05 +01:00
Allow to clear the cache if admin.maintenance, as stated in the docs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user