bypass ban_words too
This commit is contained in:
parent
010b0620df
commit
8511399076
@ -54,7 +54,9 @@ xanax
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onCommentPosting(CommentPostingEvent $event) {
|
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) {
|
public function onSourceSet(SourceSetEvent $event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user