Catalyst-Manual
view release on metacpan or search on metacpan
lib/Catalyst/Manual/Cookbook.pod view on Meta::CPAN
Lastly, handling access denial events is done by creating an
C<access_denied> private action:
sub access_denied : Private {
my ( $self, $c, $action ) = @_;
}
This action works much like auto, in that it is inherited across
namespaces (not like object oriented code). This means that the
C<access_denied> action which is B<nearest> to the action which was
blocked will be triggered.
If this action does not exist, an error will be thrown, which you can
clean up in your C<end> private action instead.
Also, it's important to note that if you restrict access to "/" then
C<end>, C<default>, etc. will also be restricted.
MyApp->acl_allow_root_internals;
will create rules that permit access to C<end>, C<begin>, and C<auto> in the
( run in 0.562 second using v1.01-cache-2.11-cpan-49f99fa48dc )