public function execute() { parent::execute(); $comment = new ServerCommentEditor($this->commentID); if ($comment->commentID == 0) { throw new IllegalLinkException(); } if (!BASHCore::getUser()->getPermission('mod.comment.moderatorPermissions')) { throw new PermissionDeniedException(); } $comment->isDisabled = 1; $comment->update(); HeaderUtil::redirect(BASHCore::getSession()->lastRequestURI, false); }