Skip to content

Kirby 6.0.0

$modelGuards->isAvailable()

Non-throwing counterpart of ::ensureAvailable()

$modelGuards->isAvailable(string $action, bool $default = false): bool

Parameters

Name Type Default Description
$actionrequired string no default value
$default bool false Used if the action has no permission rule

Return type

bool

Parent class

Kirby\Guards\ModelGuards