Skip to content

Commit

Permalink
[Zurich] Allow status page to fetch summary stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Dec 1, 2015
1 parent 07c9f97 commit 8543192
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perllib/FixMyStreet/App/Controller/Status.pm
Expand Up @@ -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');

Expand Down

0 comments on commit 8543192

Please sign in to comment.