Skip to content

Kirby 3.9.8

Home::hasAccess()

Checks if the user has access to the given panel path. This is quite tricky, because we need to call a trimmed down router to check for available routes and their firewall status.

Home::hasAccess(Kirby\Cms\User $user, string $path): bool

Parameters

Name Type Default
$user * Kirby\Cms\User –
$path * string –

Return type

bool

Parent class

Kirby\Panel\Home