bypass ban_words too
This commit is contained in:
parent
010b0620df
commit
8511399076
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Reference in a new issue