aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-12-21 10:16:00 +0000
committerStruan Donald <struan@exo.org.uk>2012-12-21 10:16:00 +0000
commitb36b61ec63020a758e3a72550ac3ced5b13747bd (patch)
tree4c6306df08ddfb1f77ed7c42053e397d759849f9
parent9a491a5228f90ec38d03c0d40575f30e5aad2d49 (diff)
use auth for seesomething admin
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index f619e128b..7f5b1e323 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -33,6 +33,11 @@ sub begin : Private {
my ( $self, $c ) = @_;
$c->uri_disposition('relative');
+
+ if ( $c->cobrand->moniker eq 'seesomething' ) {
+ $c->detach( '/auth/redirect' ) unless $c->user_exists;
+ $c->detach( '/auth/redirect' ) unless $c->user->from_council;
+ }
}
sub summary : Path( 'summary' ) : Args(0) {