From 57e6adc8daa5d47713badf9f62133aea48b78ca3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 8 Mar 2016 14:13:20 +0100 Subject: [PATCH] Fixed permission names --- .../files/lib/acp/form/PageMenuItemAddForm.class.php | 2 +- .../install/files/lib/acp/page/MenuItemListPage.class.php | 2 +- .../files/lib/acp/page/PageMenuItemListPage.class.php | 2 +- .../lib/data/page/menu/item/PageMenuItemAction.class.php | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) 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'); -- 2.20.1