aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2017-09-13 09:52:12 +0100
committerStruan Donald <struan@exo.org.uk>2017-09-13 09:52:12 +0100
commita181c520986498ab5a898ad3c21c04affa215378 (patch)
tree9630a7b97fd57081f9175741cdeeeb8046d39d32 /perllib/FixMyStreet/App/Controller/Report.pm
parent81744445eedc8686827cfc119b51ae8ec704a963 (diff)
parente2225f14211e061330223b9f752b7924610bc0f9 (diff)
Merge branch 'issues/forcouncils/224-default-priority'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 60d373a16..e37e08698 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -320,6 +320,12 @@ sub inspect : Private {
$c->stash->{post_inspect_url} = $c->req->referer;
}
+ if ($c->user->has_body_permission_to('report_edit_priority') or
+ $c->user->has_body_permission_to('report_inspect')
+ ) {
+ $c->stash->{has_default_priority} = scalar( grep { $_->is_default } $problem->response_priorities );
+ }
+
if ( $c->get_param('save') ) {
$c->forward('/auth/check_csrf_token');