From: Alexander Ebert Date: Tue, 8 Mar 2016 13:13:20 +0000 (+0100) Subject: Fixed permission names X-Git-Tag: 3.0.0_Beta_1~2030^2~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=57e6adc8daa5d47713badf9f62133aea48b78ca3;p=GitHub%2FWoltLab%2FWCF.git Fixed permission names --- diff --git a/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php index a8009ee248..a681e819a2 100644 --- a/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php @@ -71,7 +71,7 @@ class PageMenuItemAddForm extends AbstractForm { /** * @see \wcf\page\AbstractPage::$neededPermissions */ - public $neededPermissions = array('admin.display.canManagePageMenu'); + public $neededPermissions = array('admin.content.cms.canManageMenu'); /** * page menu item name diff --git a/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php index bfeb379b38..dcef8d7f9a 100644 --- a/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php @@ -26,7 +26,7 @@ class MenuItemListPage extends AbstractPage { /** * @see \wcf\page\AbstractPage::$neededPermissions */ - public $neededPermissions = array('admin.display.canManagePageMenu'); + public $neededPermissions = array('admin.content.cms.canManageMenu'); /** * menu item list diff --git a/wcfsetup/install/files/lib/acp/page/PageMenuItemListPage.class.php b/wcfsetup/install/files/lib/acp/page/PageMenuItemListPage.class.php index 84dd1787e8..2611d373bc 100644 --- a/wcfsetup/install/files/lib/acp/page/PageMenuItemListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PageMenuItemListPage.class.php @@ -36,7 +36,7 @@ class PageMenuItemListPage extends AbstractPage { /** * @see \wcf\page\AbstractPage::$neededPermissions */ - public $neededPermissions = array('admin.display.canManagePageMenu'); + public $neededPermissions = array('admin.content.cms.canManageMenu'); /** * @see \wcf\page\IPage::readData() diff --git a/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php b/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php index 3aca5da8c4..75641de8bf 100644 --- a/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php +++ b/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php @@ -38,12 +38,12 @@ class PageMenuItemAction extends AbstractDatabaseObjectAction implements ISortab /** * @see \wcf\data\AbstractDatabaseObjectAction::$permissionsDelete */ - protected $permissionsDelete = array('admin.display.canManagePageMenu'); + protected $permissionsDelete = array('admin.content.cms.canManageMenu'); /** * @see \wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate */ - protected $permissionsUpdate = array('admin.display.canManagePageMenu'); + protected $permissionsUpdate = array('admin.content.cms.canManageMenu'); /** * @see \wcf\data\AbstractDatabaseObjectAction::$requireACP @@ -94,7 +94,7 @@ class PageMenuItemAction extends AbstractDatabaseObjectAction implements ISortab * @see \wcf\data\ISortableAction::validateUpdatePosition() */ public function validateUpdatePosition() { - WCF::getSession()->checkPermissions(array('admin.display.canManagePageMenu')); + WCF::getSession()->checkPermissions(array('admin.content.cms.canManageMenu')); if (!isset($this->parameters['data']) || !isset($this->parameters['data']['structure']) || !is_array($this->parameters['data']['structure'])) { throw new UserInputException('structure');