Skip to content

Kirby 6.0.0

$fileGuards->isAvailable()

Non-throwing counterpart of ::ensureAvailable()

$fileGuards->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\FileGuards inherited from Kirby\Guards\ModelGuards