Panel::hasAccess()
Check if the given user has access to the panel or to a given area
Panel::hasAccess(Kirby\Cms\User|null $user = null, string|null $area = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $user | Kirby\Cms\Userornull |
null
|
| $area | stringornull |
null
|
Return type
bool