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 |
|---|---|---|
| $userrequired | Kirby\Cms\User |
no default value |
| $pathrequired | string |
no default value |
Return type
bool