diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-13 13:20:11 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-13 13:25:03 +0000 |
commit | 90ba1eec155c8b785b52a842fb8157aacf53d555 (patch) | |
tree | 110f1aff075ceb39e508eb4b74559e7e80b6929a /perllib/FixMyStreet/Script/Reports.pm | |
parent | 06c0c23a9de9fb1c3d57daaa4d9358ffd143a5d5 (diff) |
Allow anonymous reporting on per-category basis.
Diffstat (limited to 'perllib/FixMyStreet/Script/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/Script/Reports.pm | 2 |
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; |