Skip to content

Kirby 6.0.1

$home->hasAccess()

Checks if the current 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(string $path): bool

Parameters

Name Type Default
$pathrequired string no default value

Return type

bool

Parent class

Kirby\Panel\Home