Skip to content

Kirby 6.0.0

$userGuards->isAvailable()

Non-throwing counterpart of ::ensureAvailable()

$userGuards->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\UserGuards inherited from Kirby\Guards\ModelGuards