CRM_Core_Permission_Temp
class CRM_Core_Permission_Temp
This supplements the permissions of the CMS system, allowing us to temporarily acknowledge permission grants for API keys.
In normal usage, the class isn't even instantiated - it's only used when processing certain API backends.
Properties
static | $id |
Methods
string|int
grant(string|array $perms)
Grant permissions temporarily.
revoke(string|int $id)
Revoke a previously granted permission.
bool
check(string $perm)
Determine if a permission has been granted.
array
index(array $grants)
Generate an optimized index of granted permissions.
Details
at line 67
string|int
grant(string|array $perms)
Grant permissions temporarily.
at line 81
revoke(string|int $id)
Revoke a previously granted permission.
at line 93
bool
check(string $perm)
Determine if a permission has been granted.
at line 105
protected array
index(array $grants)
Generate an optimized index of granted permissions.