Interface IAuthorizator (namespace Nette\Security)
Authorizator checks if a given role has authorization to access a given resource.
| Public Method Summary | |
|---|---|
| bool |
isAllowed
([string $role =
self::ALL], [string $resource = self::ALL], [string $privilege = self::ALL])
Performs a role-based authorization.
|
| Constant Summary | |||
|---|---|---|---|
| null | ALL |
NULL |
line 34 Set type: all |
| bool | ALLOW |
TRUE |
line 37 Permission type: allow |
| bool | DENY |
FALSE |
line 40 Permission type: deny |
| Method Details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 50 isAllowedpublic bool isAllowed ([string $role = Performs a role-based authorization.
|
||||||||||||
