Neos\Flow\Security\Authorization\PrivilegeManagerInterface::isGrantedForRoles PHP Method

isGrantedForRoles() public method

Returns TRUE, if the given privilege type would be granted for the given roles and subject
public isGrantedForRoles ( array $roles, string $privilegeType, mixed $subject, string &$reason = '' ) : boolean
$roles array
$privilegeType string The type of privilege that should be evaluated
$subject mixed The subject to check privileges for
$reason string This variable will be filled by a message giving information about the reasons for the result of this method
return boolean
    public function isGrantedForRoles(array $roles, $privilegeType, $subject, &$reason = '');