Class

eZ\Publish\Core\Repository\Permission\PermissionCriterionResolver

class PermissionCriterionResolver implements PermissionCriterionResolver

Implementation of Permissions Criterion Resolver.

Methods

__construct(PermissionResolver $permissionResolver, LimitationService $limitationService)

Constructor.

bool|Criterion getPermissionsCriterion(string $module = 'content', string $function = 'read')

Get content-read Permission criteria if needed and return false if no access at all.

Details

at line 38
public __construct(PermissionResolver $permissionResolver, LimitationService $limitationService)

Constructor.

Parameters

PermissionResolver $permissionResolver
LimitationService $limitationService

at line 59
public bool|Criterion getPermissionsCriterion(string $module = 'content', string $function = 'read')

Get content-read Permission criteria if needed and return false if no access at all.

Parameters

string $module
string $function

Return Value

bool|Criterion

Exceptions

RuntimeException If empty array of limitations are provided from hasAccess()