diff options
author | Struan Donald <struan@exo.org.uk> | 2017-09-13 09:52:12 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-09-13 09:52:12 +0100 |
commit | a181c520986498ab5a898ad3c21c04affa215378 (patch) | |
tree | 9630a7b97fd57081f9175741cdeeeb8046d39d32 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 81744445eedc8686827cfc119b51ae8ec704a963 (diff) | |
parent | e2225f14211e061330223b9f752b7924610bc0f9 (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.pm | 6 |
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'); |