allow()
allow(mixed $role, mixed $resource = null, mixed $permission = null, \Pop\Acl\Assertion\AssertionInterface $assertion = null) : \Pop\Acl\Acl
Allow a user role permission to a resource or resources
Parameters
| mixed | $role | |
| mixed | $resource | |
| mixed | $permission | |
| \Pop\Acl\Assertion\AssertionInterface | $assertion |
Throws
- \Pop\Acl\Exception