$userAbilities->ensure()
Runs the ability check for the given action. Actions with a dedicated ensureTo<Action>() method are handed over to it, all others pass
$userAbilities->ensure(string $action): void
Parameters
| Name | Type | Default |
|---|---|---|
| $actionrequired | string |
no default value |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\AbilityException |
Parent class
Kirby\Guards\UserAbilities
inherited from Kirby\Guards\ModelAbilities