Previously CacheListPage and CacheClearAction used differing permissions, which
is not useful at all. Especially since the template didn't check the differing
permissions.
Unify them to “can rebuild data”, because it's the most related one, clearing
the cache effectively rebuilds some data.
<acpmenuitem name="wcf.acp.menu.link.maintenance.cache">
<controller>wcf\acp\page\CacheListPage</controller>
<parent>wcf.acp.menu.link.maintenance</parent>
- <permissions>admin.configuration.canManageApplication</permissions>
+ <permissions>admin.management.canRebuildData</permissions>
</acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.maintenance.rebuildData">
<controller>wcf\acp\page\RebuildDataPage</controller>
/**
* @inheritDoc
*/
- public $neededPermissions = ['admin.management.canViewLog'];
+ public $neededPermissions = ['admin.management.canRebuildData'];
/**
* @inheritDoc
/**
* @inheritDoc
*/
- public $neededPermissions = ['admin.configuration.canManageApplication'];
+ public $neededPermissions = ['admin.management.canRebuildData'];
/**
* indicates if cache was cleared