PermissionCriterionResolver
PermissionCriterionResolver.php
:
18
This service provides methods for resolving criterion permissions.
Methods¶
getPermissionsCriterion() ¶
PermissionCriterionResolver.php
:
32
Get criteria representation for a permission.
|
|
Will return a criteria if current user has limited access to the given module/function, however if user has either full or no access then boolean is returned.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$module | string | 'content' | - |
$function | string | 'read' | - |
$targets | array<string|int, mixed>|null | null | - |
Return values
bool|Criterion
getQueryPermissionsCriterion() ¶
PermissionCriterionResolver.php
:
41
Get composite Criterion for Querying permissions.
|
|
MatchAll and MatchNone are returned for a user with full and no access respectively.