fix missing global (how did this pass tests? o.o)
This commit is contained in:
parent
c0279565f4
commit
be4ae9da32
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ xanax
|
|||
}
|
||||
|
||||
public function onCommentPosting(CommentPostingEvent $event) {
|
||||
global $user;
|
||||
if(!$user->can("bypass_comment_checks")) {
|
||||
$this->test_text($event->comment, new CommentPostingException("Comment contains banned terms"));
|
||||
}
|
||||
|
|
Reference in a new issue