summaryrefslogtreecommitdiff
path: root/security/p5-Tree-Authz/pkg-descr
blob: 90ba2f469df57fdf36f6e4f3f2f19ca19f601192 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Class for inheritable, role-based permissions system (Role Based Access 
Control - RBAC).

Custom methods can be placed on role objects. Authorization can be 
performed either by checking whether the role name matches the required 
name, or by testing (via can) whether the role can perform the method 
required.

Two role are specified by default. At the top, superusers can do anything 
($superuser->can( $action ) always returns a coderef). At the bottom, the 
base role can do nothing ($base->can( $action ) always returns undef).

All roles are automatically capable of authorizing actions named for the 
singular and plural of the role name.

WWW: http://search.cpan.org/dist/Tree-Authz/