aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-09 10:11:35 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-09 10:11:35 +0000
commitf18c871b126342c7ca1ab3f6f994fb32fcf0f1d8 (patch)
treef69f0bef6ec3707d17fdb838737791060295eb0d /perllib/FixMyStreet/App/Controller/Report.pm
parent50e64f29229ff6ef5260f32dd502201b61f74230 (diff)
parente61170f8d7308027a7e3a935f5f306da0af0b4df (diff)
Merge branch 'staff-sign-up-other-user-for-alert'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index debf27cde..9cc810c16 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -91,6 +91,10 @@ sub display :PathPart('') :Chained('id') :Args(0) {
$c->stash->{template} = 'report/inspect.html';
$c->forward('inspect');
}
+
+ if ($c->user_exists && $c->user->has_permission_to(contribute_as_another_user => $c->stash->{problem}->bodies_str_ids)) {
+ $c->stash->{email} = $c->user->email;
+ }
}
sub moderate_report :PathPart('moderate') :Chained('id') :Args(0) {