X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FRoot.pm;h=787850019a9929d1fb17a2d3fe9d4088ce5dda3e;hp=5faa024d2567b5c72c0c55aa82262dfd69d367ee;hb=572c72716d4975eeaf13ceebb9819bbd91b1a519;hpb=8a4437b6883f7f089577a26ce16041bb5ad5eebc diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 5faa024..7878500 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -220,6 +220,10 @@ sub end : ActionClass('RenderView') { $c->stash->{template} = 'access_denied.tt2'; $c->res->status(403); $c->clear_errors; + }elsif ($c->error->[0] =~ m/No logged in user, and none supplied as argument/){ + $c->stash->{template} = 'access_denied.tt2'; + $c->res->status(403); + $c->clear_errors; } }