$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