Interface IPermissionAssertion (namespace Nette\Security)
Represents conditional ACL Rules with Assertions.
| Public Method Summary | |
|---|---|
| bool |
assert
(Permission $acl, string $roleId, string $resourceId, string|NULL $privilege)
Returns true if and only if the assertion conditions are met.
|
| Method Details | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 45 assertpublic bool assert (Permission $acl, string $roleId, string $resourceId, string|NULL $privilege) Returns true if and only if the assertion conditions are met. This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the $role, $resource, or $privilege parameters are Permission::ALL, it means that the query applies to all Roles, Resources, or privileges, respectively.
|
|||||||||||||||||||||
