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