aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Auth.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-07-20 09:32:55 +0100
committerDave Arter <davea@mysociety.org>2016-07-20 09:32:55 +0100
commit5e6d75814fc24da3d298df258989049a57c5d75f (patch)
treed1539cb97c1859594d115ad465df0de37f0b3721 /perllib/FixMyStreet/App/Controller/Auth.pm
parent65545553b5171f1ef1d611ea93c38f138451fb31 (diff)
parent5e8ac92d2a38d3ae3802bffee12111e164935b1d (diff)
Merge branch 'admin-using-normal-login'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Auth.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Auth.pm b/perllib/FixMyStreet/App/Controller/Auth.pm
index ca4a2fc80..40cd163cf 100644
--- a/perllib/FixMyStreet/App/Controller/Auth.pm
+++ b/perllib/FixMyStreet/App/Controller/Auth.pm
@@ -414,8 +414,8 @@ Used after signing in to take the person back to where they were.
sub redirect_on_signin : Private {
my ( $self, $c, $redirect ) = @_;
$redirect = 'my' unless $redirect;
+ $redirect = 'my' if $redirect =~ /^admin/ && !$c->user->is_superuser;
if ( $c->cobrand->moniker eq 'zurich' ) {
- $redirect = 'my' if $redirect eq 'admin';
$redirect = 'admin' if $c->user->from_body;
}
$c->res->redirect( $c->uri_for( "/$redirect" ) );