Method |
Description |
|
__construct ( DBInterface $db ) |
|
|
can ( string $action, string $context_path = '', string $cabin = CABIN_NAME, integer $user_id ) : boolean |
Perform a permissions check |
|
checkGroup ( string $action, integer $context_id = null, integer $group_id = null, boolean $deep_search = true ) : boolean |
Do the members of this group have permission to do something? |
|
checkUser ( string $action, integer $context_id = null, integer $user_id = null, boolean $ignore_superuser = false ) : boolean |
Check that the user, specifically, has permission to do something. |
|
checkUsersGroups ( string $action = '', integer $context_id = null, integer $user_id = null, boolean $ignore_superuser = false ) : boolean |
Check that any of the users' groups has the permission bit |
|
getOverlap ( string $context = '', string $cabin = CABIN_NAME ) : array |
Returns an array with overlapping context IDs -- useful for when
contexts are used with regular expressions |
|
isSuperUser ( integer $user_id, boolean $ignore_groups = false ) : boolean |
Is this user a super user? Do they belong in a superuser group? |
|