$access->area()
Check if the given user has access to a given area. Use * to check for general Panel access.
$access->area(string|null $area = null, bool $throws = false): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $area | stringornull |
null
|
| $throws | bool |
false
|
Return type
bool
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\PermissionException |
when has no access |