aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Root.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-06-14 14:46:52 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-14 14:46:52 +0100
commitb1149a88d57abda412286a706005d17766fce8bf (patch)
treec417f5ef51930d7b213c97f0c216c5d35786c42d /perllib/FixMyStreet/App/Controller/Root.pm
parentf0d0629b26ab72343009603be9244f27f44b0e7e (diff)
parentc6acc64950623088ce616bd2fd2e74e332890335 (diff)
Merge branch 'issues/commercial/1417-better-private-message'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Root.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Root.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm
index 340c930c2..2c7e28e5f 100644
--- a/perllib/FixMyStreet/App/Controller/Root.pm
+++ b/perllib/FixMyStreet/App/Controller/Root.pm
@@ -122,7 +122,9 @@ sub page_error_410_gone : Private {
sub page_error_403_access_denied : Private {
my ( $self, $c, $error_msg ) = @_;
- $c->detach('page_error', [ $error_msg || _("Sorry, you don't have permission to do that."), 403 ]);
+ $c->stash->{title} = _('Access denied');
+ $error_msg ||= _("Sorry, you don't have permission to do that.");
+ $c->detach('page_error', [ $error_msg, 403 ]);
}
sub page_error_400_bad_request : Private {