Catalyst::Action::Role::ACL(3pm)

Catalyst::Action::Role::ACL3pm

Deprecated user role-based authorization action class

Usage

 sub foo
 :Local
 :ActionClass(Role::ACL)
 :RequiresRole(admin)
 :ACLDetachTo(denied)
 {
     my ($self, $c) = @_;
     ...
 }
 sub denied :Private {
     my ($self, $c) = @_;
     $c->res->status('403');
     $c->res->body('Denied!');
 }

Overview

Provides a Catalyst reusable action for user role-based authorization. ACLs are applied via the assignment of attributes to application action subroutines.

You are better using Catalyst::ActionRole::ACL to do this, as it plays nicely with other extensions. This package is maintained to allow compatibility with people using this in existing code, but will warn once when used.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

Author

David P.C. Wollmann <[email protected]>

Bugs

This is new code. Find the bugs and report them, please.

From libcatalyst-actionrole-acl-perl 0.07-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.