Neos\Flow\Security\Authorization\TestingPrivilegeManager::isPrivilegeTargetGranted PHP Метод

isPrivilegeTargetGranted() публичный Метод

Returns TRUE if access is granted on the given privilege target in the current security context or if set based on the override decision value.
public isPrivilegeTargetGranted ( string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : boolean
$privilegeTargetIdentifier string The identifier of the privilege target to decide on
$privilegeParameters array Optional array of privilege parameters (simple key => value array)
Результат boolean TRUE if access is granted, FALSE otherwise
    public function isPrivilegeTargetGranted($privilegeTargetIdentifier, array $privilegeParameters = [])
    {
        if ($this->overrideDecision === false) {
            return false;
        } elseif ($this->overrideDecision === true) {
            return true;
        }
        return parent::isPrivilegeTargetGranted($privilegeTargetIdentifier, $privilegeParameters);
    }