diff options
author | Struan Donald <struan@exo.org.uk> | 2017-11-22 16:44:19 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-29 20:55:41 +0000 |
commit | 250cbde400f03f20f1801e828a6c9da3c0881381 (patch) | |
tree | 3c8bbea5d7346e78b6dab5f5a90572d74c0fb612 /perllib/FixMyStreet/App/Controller/Dashboard.pm | |
parent | 7d3ddfbdd9ddaf07d79909262df898a631630d1e (diff) |
allow dashboard CSV export access using token auth
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Dashboard.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Dashboard.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm index 27661b736..264845d40 100644 --- a/perllib/FixMyStreet/App/Controller/Dashboard.pm +++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm @@ -91,6 +91,10 @@ Show the dashboard table. sub index : Path : Args(0) { my ( $self, $c ) = @_; + if ($c->get_param('export')) { + $c->authenticate(undef, "access_token"); + } + my $body = $c->forward('check_page_allowed'); $c->stash->{body} = $body; |