aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-01-31 11:05:33 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-01-31 11:05:33 +0000
commit81e725393821f4aa39007f67c3aba01e8a058d7c (patch)
treecd77285302abbfe1c23e54570d2fe194d9ef9f7e
parent71c3c54ecf260024cfa468a077b17ced5f34a5dd (diff)
parentfd55ac237e453139f4e8feba5db2fe6e55987023 (diff)
Merge branch 'inspect-save-to-shortlist'
-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 3c251a5cb..175db4a19 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -433,6 +433,12 @@ sub inspect : Private {
} else {
$redirect_uri = $c->uri_for( $problem->url );
}
+
+ # Or if inspector, redirect back to shortlist
+ if ($c->user->has_body_permission_to('planned_reports')) {
+ $redirect_uri = $c->uri_for_action('my/planned');
+ }
+
$c->log->debug( "Redirecting to: " . $redirect_uri );
$c->res->redirect( $redirect_uri );
}