diff options
author | Dave Arter <davea@mysociety.org> | 2016-09-21 13:44:22 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-09-23 10:52:46 +0100 |
commit | 78b34d4543c1c3808851351a9f083789a99c72c9 (patch) | |
tree | dcb549d79d15cf8ddb57b7755c011b3d16921ae6 /perllib/FixMyStreet/App/Controller/Admin | |
parent | cb1d47760c9b5c879211474d4ec40735a87df57e (diff) |
Some minor admin fixes
- Superusers couldn't view response priorities due to invalid $c->forward call
- Navigation to other areas of admin was broken on response priority admin pages
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm b/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm index f1110fbf0..ce17390d9 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm @@ -17,7 +17,7 @@ sub index : Path : Args(0) { my $user = $c->user; if ($user->is_superuser) { - $c->forward('fetch_all_bodies'); + $c->forward('/admin/fetch_all_bodies'); } elsif ( $user->from_body ) { $c->forward('load_user_body', [ $user->from_body->id ]); $c->res->redirect( $c->uri_for( '', $c->stash->{body}->id ) ); |