Interface

eZ\Publish\API\Repository\PermissionCriterionResolver

interface PermissionCriterionResolver

This service provides methods for resolving criterion permissions.

Methods

bool|Criterion getPermissionsCriterion(string $module, string $function)

Get criteria representation for a permission.

Details

at line 27
public bool|Criterion getPermissionsCriterion(string $module, string $function)

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

string $module
string $function

Return Value

bool|Criterion