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