bypass ban_words too

This commit is contained in:
Shish 2014-11-30 13:11:01 +00:00
parent 010b0620df
commit 8511399076

View file

@ -54,7 +54,9 @@ xanax
}
public function onCommentPosting(CommentPostingEvent $event) {
$this->test_text($event->comment, new CommentPostingException("Comment contains banned terms"));
if(!$user->can("bypass_comment_checks")) {
$this->test_text($event->comment, new CommentPostingException("Comment contains banned terms"));
}
}
public function onSourceSet(SourceSetEvent $event) {