define |
"BASE" "../../.." |
---|---|
package |
Subsystems |
check(string $permission, object $location) : boolean
Returns true if the permission is granted, false if it is not.
node |
Subsystems:expPermissions |
---|
string
The name of the permission to check
object
The location to check on. This will be passed to getLocationHierarchy (defined by the module) for a full hierarchy of permissions.
boolean
checkGroup(\group/object $group, string $permission, object $location, boolean $explicitOnly = false) : boolean
Returns true if the permission is granted, false if it is not.
node |
Subsystems:expPermissions |
---|
\group/object
The group to check
string
The name of the permission to check
object
The location to check on.
boolean
boolean
checkUser(\user/object $user, string $permission, object $location, boolean $explicitOnly = false) : boolean
Handles explicit checks (actually assigned to the user) implicit and inherited checks (assigned to a group the user belongs to). Returns true if the permission is granted, false if it is not.
node |
Subsystems:expPermissions |
---|
\user/object
The user to check permission on
string
The name of the permission to check
object
The location to check on.
boolean
Whether to check for explicit/implicit assignment or inherited.
boolean
grant(\user/object $user, string $permission, object $location)
node |
Subsystems:expPermissions |
---|---|
\user/object
The user to grant the permission to
string
The name of the permission to grant
object
The location to grant the permission on
grantGroup(\group/object $group, string $permission, object $location)
node |
Subsystems:expPermissions |
---|---|
\group/object
The group to grant the permission to
string
The name of the permission to grant
object
The location to grant the permission on
load(\user/object $user)
node |
Subsystems:expPermissions |
---|---|
\user/object
the user to load permissions for.
revokeAll(\user/object $user, object $location) : mixed
node |
Subsystems:expPermissions |
---|
\user/object
The user to remove all permissions from
object
The location to remove all permission on
mixed
revokeAllGroup(\group/object $group, object $location) : mixed
node |
Subsystems:expPermissions |
---|
\group/object
The group to remove all permissions from
object
The location to remove all permission on
mixed
revokeComplete(object $location) : boolean
node |
Subsystems:expPermissions |
---|
object
boolean
triggerRefresh()
node |
Subsystems:expPermissions |
---|---|
deprecated |
2.3.3
moved into expSession |