Difference between revisions of "Freeside:1.9:Documentation:Developer/FS/AccessRight"

From Freeside
Jump to: navigation, search
(import from POD)
(import from POD)
 
Line 27: Line 27:
  
 
==SEE ALSO==
 
==SEE ALSO==
[[Freeside:1.9:Documentation:Developer/FS/access right]], [[FS/access group]], [[FS/access user|FS::access_right]], [[FS::access_group]], [[FS::access_user]]
+
[[Freeside:1.9:Documentation:Developer/FS/access right|FS::access_right]], [[Freeside:1.9:Documentation:Developer/FS/access group|FS::access_group]], [[Freeside:1.9:Documentation:Developer/FS/access user|FS::access_user]]

Latest revision as of 16:20, 3 October 2007

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

FS::access_right, FS::access_group, FS::access_user