Fixed permission names
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Mar 2016 13:13:20 +0000 (14:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Mar 2016 13:13:20 +0000 (14:13 +0100)
wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php
wcfsetup/install/files/lib/acp/page/MenuItemListPage.class.php
wcfsetup/install/files/lib/acp/page/PageMenuItemListPage.class.php
wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php

index a8009ee2481de40abd788088db4ac88bd4d65528..a681e819a2309bffde12a6735f43bda4c7da3ead 100644 (file)
@@ -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
index bfeb379b384d5658a788b88397a856375848fd67..dcef8d7f9a95ca144e2ecc97d460e43109b1bf24 100644 (file)
@@ -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
index 84dd1787e89d9c7b64cba3362f13f5b73abba200..2611d373bc12baac63f4c3704cfbf1f9738a26f6 100644 (file)
@@ -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()
index 3aca5da8c4de93d7445b177f81f15f7bfcc94975..75641de8bf5338b648d8d8afc18f241210019c5e 100644 (file)
@@ -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');