$menu->hasPermission()
Checks if the access permission to a specific area is granted. Defaults to allow access.
$menu->hasPermission() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$menu->hasPermission(string $id): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $idrequired | string |
no default value |
Return type
bool
This method modifies the existing $menu object it is applied to and returns it again.