diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-31 10:48:14 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-31 13:01:08 +0100 |
commit | 1567ec21cf085c87b5e92d5755e8cccaec4e656d (patch) | |
tree | a58933ec260c53e450e6182eacb11eb65580f835 /perllib/FixMyStreet/App/Controller/Root.pm | |
parent | 12e567387969c3d13d0519de353d65df8072417c (diff) |
return 403 for non public reports
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Root.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Root.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm index 7f7d7f5fd..769a147bf 100644 --- a/perllib/FixMyStreet/App/Controller/Root.pm +++ b/perllib/FixMyStreet/App/Controller/Root.pm @@ -94,6 +94,13 @@ sub page_error_410_gone : Private { $c->response->status(410); } +sub page_error_403_access_denied : Private { + my ( $self, $c, $error_msg ) = @_; + $c->stash->{template} = 'index.html'; + $c->stash->{error} = $error_msg; + $c->response->status(403); +} + =head2 end Attempt to render a view, if needed. |