diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-29 20:55:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-29 20:55:47 +0000 |
commit | 12653962d58df6be6ff1a753e3370ff3077030c1 (patch) | |
tree | 937812fe7e8ae328ec05ef0d2db409c9c0b09be8 /perllib/FixMyStreet/App/Controller/Dashboard.pm | |
parent | 487198a6cd46e9824045676773990b73baac2d89 (diff) | |
parent | 250cbde400f03f20f1801e828a6c9da3c0881381 (diff) |
Merge branch 'access-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; |