From: Marcel Werk Date: Mon, 3 Jun 2013 18:28:27 +0000 (+0200) Subject: Fixed permission check X-Git-Tag: 2.0.0_Beta_3~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=748b3390350372d2851f3b3c05fa699fbb830fff;p=GitHub%2FWoltLab%2FWCF.git Fixed permission check --- 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(); }