Zend\Permissions\Acl\Acl::roleDFSOnePrivilege
Performs a depth-first search of the Role DAG, starting at $role, in order to find a rule allowing/denying $role access to a $privilege upon $resource
This method returns true if a rule is found and allows access. If a rule exists and denies access, then this method returns false. If no applicable rule is found, then this method returns null.
Signature
protected function roleDFSOnePrivilege(RoleInterface
$role,
[ResourceInterface
$resource = null,
[string
$privilege = null]] )
Parameters
$role
— Zend\Permissions\Acl\Role\RoleInterface
$resource
— Zend\Permissions\Acl\Resource\ResourceInterface
$privilege
— string
Returns
- bool|null