aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-09-10 16:47:49 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-09-10 16:47:52 +0100
commit77e4078431bf8c15fbcd06330787a25b0c6965cf (patch)
tree5910116f429fa85153c6d051146cea3698e024ee /perllib/FixMyStreet
parent7e1934d4f5aa61a467780193dcf966fecd50ea5d (diff)
[Westminster] No email alerts on .com reports.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index 015da5e0b..e5327b084 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -200,4 +200,14 @@ sub updates_disallowed {
return $self->next::method(@_);
}
+sub suppress_reporter_alerts {
+ my $self = shift;
+ my $c = $self->{c};
+ my $problem = $c->stash->{report};
+ if ($problem->to_body_named('Westminster')) {
+ return 1;
+ }
+ return 0;
+}
+
1;