Skip to content

Kirby 4.2.0

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 null
$area string|null null

Return type

bool

Parent class

Kirby\Panel\Panel