From: Matthias Schmidt Date: Wed, 24 Apr 2013 20:36:28 +0000 (+0200) Subject: Adds missing permissions for PageMenuItemAction X-Git-Tag: 2.0.0_Beta_1~301^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1df6c4403dbbef9dd5a6c64fd08a9d668f6f903c;p=GitHub%2FWoltLab%2FWCF.git Adds missing permissions for PageMenuItemAction --- 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 1aff996f0c..240f43e538 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 @@ -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(); } /**