Adds missing permissions for PageMenuItemAction
authorMatthias Schmidt <gravatronics@live.com>
Wed, 24 Apr 2013 20:36:28 +0000 (22:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 24 Apr 2013 20:36:28 +0000 (22:36 +0200)
wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php

index 1aff996f0cb30662df030b4ce7ff81cdfd6318ee..240f43e538bfddb87b08e35b32fd23e03686378e 100644 (file)
@@ -35,6 +35,16 @@ class PageMenuItemAction extends AbstractDatabaseObjectAction implements ISortab
         */
        public $menuItems = array();
        
+       /**
+        * @see wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
+        */
+       protected $permissionsDelete = array('admin.display.canManagePageMenu');
+       
+       /**
+        * @see wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
+        */
+       protected $permissionsUpdate = array('admin.display.canManagePageMenu');
+       
        /**
         * @see wcf\data\IDatabaseObjectAction::create()
         */
@@ -150,6 +160,8 @@ class PageMenuItemAction extends AbstractDatabaseObjectAction implements ISortab
                if ($this->menuItemEditor->isLandingPage) {
                        throw new PermissionDeniedException();
                }
+               
+               parent::validateUpdate();
        }
        
        /**