From: Tim Düsterhus Date: Thu, 4 May 2023 13:54:02 +0000 (+0200) Subject: Unify the cache management permissions to `admin.management.canRebuildData` X-Git-Tag: 6.0.0_Alpha_1~159^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d0690b5e8ef97dc52e44a554b00dc2941e88702;p=GitHub%2FWoltLab%2FWCF.git Unify the cache management permissions to `admin.management.canRebuildData` 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. --- diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 1b87f4feed..5f839deffe 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -715,7 +715,7 @@ wcf\acp\page\CacheListPage wcf.acp.menu.link.maintenance - admin.configuration.canManageApplication + admin.management.canRebuildData wcf\acp\page\RebuildDataPage diff --git a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php index 4d0ac2b62c..1ec9ed8a0b 100644 --- a/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php @@ -21,7 +21,7 @@ final class CacheClearAction extends AbstractSecureAction /** * @inheritDoc */ - public $neededPermissions = ['admin.management.canViewLog']; + public $neededPermissions = ['admin.management.canRebuildData']; /** * @inheritDoc diff --git a/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php b/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php index 4dada7d01e..dfb9470801 100755 --- a/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/CacheListPage.class.php @@ -27,7 +27,7 @@ class CacheListPage extends AbstractPage /** * @inheritDoc */ - public $neededPermissions = ['admin.configuration.canManageApplication']; + public $neededPermissions = ['admin.management.canRebuildData']; /** * indicates if cache was cleared