eZ\Publish\Core\SignalSlot\Repository::hasAccess PHP Method

hasAccess() public method

Deprecation: since 6.6, to be removed. Use PermissionResolver::hasAccess() instead. Check if user has access to a given module / function. Low level function, use canUser instead if you have objects to check against.
public hasAccess ( string $module, string $function, eZ\Publish\API\Repository\Values\User\UserReference $user = null ) : boolean | array
$module string
$function string
$user eZ\Publish\API\Repository\Values\User\UserReference
return boolean | array Bool if user has full or no access, array if limitations if not
    public function hasAccess($module, $function, UserReference $user = null)
    {
        return $this->repository->hasAccess($module, $function, $user);
    }