Freeside:1.9:Documentation:Developer/FS/AccessRight

From Freeside
< Freeside:1.9:Documentation:Developer‎ | FS
Revision as of 16:11, 3 October 2007 by Ivan (talk | contribs) (import from POD)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NAME

FS::AccessRight - Access control rights.

SYNOPSIS

 use FS::AccessRight;

 my @rights = FS::AccessRight->rights;

 #my %rights = FS::AccessRight->rights_categorized;
 tie my %rights, 'Tie::IxHash', FS::AccessRight->rights_categorized;
 foreach my $category ( keys %rights ) {
   my @category_rights = @{ $rights{$category} };
 }

DESCRIPTION

Access control rights - Permission to perform specific actions that can be assigned to users and/or groups.

CLASS METHODS

rights
Returns a list of right names.
rights_info
Returns a list of key-value pairs suitable for assigning to a hash. Keys are category names and values are list references of rights. Each element of the list reference scalar right name or a hashref with the following keys:
rightname - Right name
; desc - Extended right description:; global - Global flag, indicates that this access right provides access to global data which is shared among all agents.

BUGS

Damn those infernal six-legged creatures!

SEE ALSO

Freeside:1.9:Documentation:Developer/FS::access_right, FS::access_group, FS::access_right, FS::access_group, FS::access_user