Skip to content

Kirby 6.0.0

$languageAbilities->may()

Non-throwing counterpart of ::ensure()

$languageAbilities->may(string $action): bool

Parameters

Name Type Default
$actionrequired string no default value

Return type

bool

Parent class

Kirby\Guards\LanguageAbilities inherited from Kirby\Guards\ModelAbilities