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/Report.pm | |
parent | 12e567387969c3d13d0519de353d65df8072417c (diff) |
return 403 for non public reports
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index d36ba32fe..9405ec48c 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -74,6 +74,11 @@ sub load_problem_or_display_error : Private { '/page_error_410_gone', [ _('That report has been removed from FixMyStreet.') ] # ); + } elsif ( $problem->non_public ) { + $c->detach( + '/page_error_403_access_denied', + [ _('That report cannot be viewed on FixMyStreet.') ] # + ); } $c->stash->{problem} = $problem; |