Access Control List class
The default Habari ACL class implements groups, and group permissions Users are assigned to one or more groups. Groups are assigned one or more permissions. Membership in any group that grants a permission means you have that permission. Membership in any group that denies that permission denies the user that permission, even if another group grants that permission.
Located in /system/classes/acl.php (line 17)
Check access. Implements hierarchy of access terms.
Convert a permission access name (read, write, full, denied) into an ID
Convert a permission access ID into a name
Get an array of QueryRecord objects containing all permissions
Create a new permission, and save it to the permission tokens table
Deny permission to a group
Deny permission to a user
Remove a permission, and any assignments of it
Grant a permission to a group
Grant a permission to a user
Determine whether a group can perform a specific action
Convert a permission name into a valid format
Remove a permission from the group permissions table
Remove a permission from the user permissions table
Fetch a permission token's description from the DB
Determine whether a permission token exists
Get a permission token's ID by its name
Get a permission token's name by its ID
Determine whether a user can perform a specific action
Static initializer to fill the $access_ids array
ACCESS_NONEXISTANT_PERMISSION
= true
(line 24)
How to handle a permission request for a permission that is not in the permission list.
For example, if you request $user->can('some non-existant permission') then this value is returned. It's true at the moment because that allows access to all features for upgrading users.
Documentation generated on Thu, 30 Oct 2008 20:31:00 +0100 by phpDocumentor 1.3.2