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 |