From 8511399076eb0e39874234bb5ef8a8368835d8d3 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 30 Nov 2014 13:11:01 +0000 Subject: [PATCH] bypass ban_words too --- ext/ban_words/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/ban_words/main.php b/ext/ban_words/main.php index 6d4ee986..c9256a58 100644 --- a/ext/ban_words/main.php +++ b/ext/ban_words/main.php @@ -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) {