my ($self, $c, $action) = @_;
$c->stash->{template} = 'access_denied.tt2';
my ($self, $c, $action) = @_;
$c->stash->{template} = 'access_denied.tt2';
if (scalar @{ $c->error } ){
if ($c->error->[0] =~ m/Can't call method "id" on an undefined value at/){
$c->stash->{template} = 'access_denied.tt2';
if (scalar @{ $c->error } ){
if ($c->error->[0] =~ m/Can't call method "id" on an undefined value at/){
$c->stash->{template} = 'access_denied.tt2';