From 3c7af66f8c8a2226d3a968df7fbcdeacb9fe669a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 16 Jul 2015 13:25:04 +0800 Subject: Bug 1184436 - antispam comment blocking should apply to all bugs --- extensions/AntiSpam/Extension.pm | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'extensions/AntiSpam') diff --git a/extensions/AntiSpam/Extension.pm b/extensions/AntiSpam/Extension.pm index ad8914bd0..7e1823346 100644 --- a/extensions/AntiSpam/Extension.pm +++ b/extensions/AntiSpam/Extension.pm @@ -63,19 +63,8 @@ sub config_modify_panels { sub _comment_blocking { my ($self, $params) = @_; - - # as we want to use this sparingly, we only block comments on bugs which - # the user didn't report, and skip it completely if the user is in the - # editbugs group. my $user = Bugzilla->user; return if $user->in_group('editbugs'); - # new bug - return unless $params->{bug_id}; - # existing bug - my $bug = ref($params->{bug_id}) - ? $params->{bug_id} - : Bugzilla::Bug->new($params->{bug_id}); - return if $bug->reporter->id == $user->id; my $blocklist = Bugzilla->dbh->selectcol_arrayref( 'SELECT word FROM antispam_comment_blocklist' -- cgit v1.2.3-24-g4f1b