aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Reports.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-14 09:22:43 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-14 09:22:43 +0000
commita494edfb9b8b971ef825782123d4422c73288b75 (patch)
treec079d022f384918eea3d70732e5069f1e760677e /perllib/FixMyStreet/Script/Reports.pm
parentf661c0f41eb30b024c17888889b7d725ab412ddf (diff)
parent90ba1eec155c8b785b52a842fb8157aacf53d555 (diff)
Merge branch 'allow-anon-on-some-categories'
Diffstat (limited to 'perllib/FixMyStreet/Script/Reports.pm')
-rw-r--r--perllib/FixMyStreet/Script/Reports.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm
index 73c179751..aa46a5c43 100644
--- a/perllib/FixMyStreet/Script/Reports.pm
+++ b/perllib/FixMyStreet/Script/Reports.pm
@@ -107,7 +107,7 @@ sub send(;$) {
$h{osm_url} .= '?m';
}
- if ( $cobrand->allow_anonymous_reports &&
+ if ( $cobrand->allow_anonymous_reports($row->category) &&
$row->user->email eq $cobrand->anonymous_account->{'email'}
) {
$h{anonymous_report} = 1;