diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-12-01 14:54:45 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-12-01 14:54:45 +0000 |
commit | 8543192128ed15c9bc73e3686ab03324ee5e2b11 (patch) | |
tree | be17ffa85f178b83d38943f657ffe17d2bc3b8e6 /perllib/FixMyStreet/App/Controller/Status.pm | |
parent | 07c9f9723f67672c01ef5d83589f78a65e7f1d34 (diff) |
[Zurich] Allow status page to fetch summary stats.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Status.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Status.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Status.pm b/perllib/FixMyStreet/App/Controller/Status.pm index 907fe5456..8a84a1666 100755 --- a/perllib/FixMyStreet/App/Controller/Status.pm +++ b/perllib/FixMyStreet/App/Controller/Status.pm @@ -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'); |