From 748b3390350372d2851f3b3c05fa699fbb830fff Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 3 Jun 2013 20:28:27 +0200 Subject: [PATCH] Fixed permission check --- .../files/lib/form/AbstractModerationForm.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php b/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php index 8e9912ee5a..ae826fdb44 100644 --- a/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php +++ b/wcfsetup/install/files/lib/form/AbstractModerationForm.class.php @@ -45,6 +45,11 @@ abstract class AbstractModerationForm extends AbstractForm { */ public $loginRequired = true; + /** + * @see wcf\page\AbstractPage::$neededPermissions + */ + public $neededPermissions = array('mod.general.canUseModeration'); + /** * moderation queue object * @var wcf\data\moderation\queue\ViewableModerationQueue @@ -65,7 +70,7 @@ abstract class AbstractModerationForm extends AbstractForm { if (isset($_REQUEST['id'])) $this->queueID = intval($_REQUEST['id']); $this->queue = ViewableModerationQueue::getViewableModerationQueue($this->queueID); - if (!$this->queue === null) { + if ($this->queue === null) { throw new IllegalLinkException(); } -- 2.20.1