aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Status.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Status.pm')
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Status.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Status.pm b/perllib/FixMyStreet/App/Controller/Status.pm
index 907fe5456..931c7bd47 100755
--- a/perllib/FixMyStreet/App/Controller/Status.pm
+++ b/perllib/FixMyStreet/App/Controller/Status.pm
@@ -3,7 +3,7 @@ use Moose;
use namespace::autoclean;
use HTTP::Negotiate;
-use JSON;
+use JSON::MaybeXS;
BEGIN { extends 'Catalyst::Controller'; }
@@ -27,6 +27,9 @@ sub index_json : Path('/status.json') : Args(0) {
sub index : Path : Args(0) {
my ($self, $c, $format) = @_;
+ # Workaround that the admin summary page is only displayed to Zurich
+ # superusers. It doesn't have anything sensitive
+ $c->stash->{admin_type} = 'super';
# Fetch summary stats from admin front page
$c->forward('/admin/index');