aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 7930ff6b1..e9fec8fda 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -1390,4 +1390,13 @@ sub hook_report_filter_status {
} @$status;
}
+# If report is made by a flagged user, mark as non-public
+sub report_new_munge_before_insert {
+ my ($self, $report) = @_;
+
+ if ($report->user->flagged) {
+ $report->non_public(1);
+ }
+}
+
1;