diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-29 10:47:10 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-29 10:47:10 +0000 |
commit | d772dfa161d474943d10f25b89892317d0222543 (patch) | |
tree | 47533ea5f1e812594c8eee83ebd4a0e1fe3e199a /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | 57f79d16ea14dbc4ea1b0ec4e99041e0e7f6d6dd (diff) |
Get Zurich superuser admin index page working a bit better.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 9f356ac41..17bc3ca76 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -62,7 +62,7 @@ Displays some summary information for the requests. sub index : Path : Args(0) { my ( $self, $c ) = @_; - if ($c->cobrand->moniker eq 'zurich') { + if ($c->cobrand->moniker eq 'zurich' && $c->stash->{admin_type} ne 'super') { return $c->cobrand->admin(); } @@ -937,7 +937,7 @@ sub user_edit : Path('user_edit') : Args(1) { if ( $user->email ne $c->req->param('email') || $user->name ne $c->req->param('name' ) || - ($user->from_body && $user->from_body->id != $c->req->param('body')) || + ($user->from_body && $user->from_body->id ne $c->req->param('body')) || (!$user->from_body && $c->req->param('body')) ) { $edited = 1; |