Returns TRUE, if the given privilege type is granted for the given subject based
on the current security context.
public isGranted ( string $privilegeType, mixed $subject, string &$reason = '' ) : boolean | ||
$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 |