From 1df6c4403dbbef9dd5a6c64fd08a9d668f6f903c Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 24 Apr 2013 22:36:28 +0200 Subject: [PATCH] Adds missing permissions for PageMenuItemAction --- .../data/page/menu/item/PageMenuItemAction.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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(); } /** -- 2.20.1