PermissionManager.php
36 * @param $resource The resource to authorize (e.g. class name of the Controller or ObjectId instance).
39 * @param $user User instance to use for authorization (optional, default: the user obtained by Session::getAuthUser method)
removePermission($resource, $context, $action, $role)
Remove a role from a permission on a resource, context, action combination.
hasTempPermission($resource, $context, $action)
Check if a temporary permission for the current user exists.
authorize($resource, $context, $action, User $user=null)
Authorize for given resource, context, action triple.
clearTempPermissions()
Reset all temporary permissions.
getPermissions($resource, $context, $action)
Permission management.
const PERMISSION_MODIFIER_ALLOW
Definition: PermissionManager.php:24
createPermission($resource, $context, $action, $role, $modifier)
Create/Change a permission for a role on a resource, context, action combination. ...
addTempPermission($resource, $context, $action)
Add a temporary permission for the current user.
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:22
const PERMISSION_MODIFIER_DENY
Definition: PermissionManager.php:25
removeTempPermission($resource, $context, $action)
Remove a temporary permission for the current user.
setPermissions($resource, $context, $action, $permissions)
Set the permissions on a resource, context, action combination.