summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-16 07:25:04 +0200
committerByron Jones <glob@mozilla.com>2015-07-16 07:25:04 +0200
commit3c7af66f8c8a2226d3a968df7fbcdeacb9fe669a (patch)
tree5a9fc93121601872e9bb2900df4210c6d8c3a136
parent90853c647912e618d916332fee4beb696299fe1b (diff)
downloadbugzilla-3c7af66f8c8a2226d3a968df7fbcdeacb9fe669a.tar.gz
bugzilla-3c7af66f8c8a2226d3a968df7fbcdeacb9fe669a.tar.xz
Bug 1184436 - antispam comment blocking should apply to all bugs
-rw-r--r--extensions/AntiSpam/Extension.pm11
1 files changed, 0 insertions, 11 deletions
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'