Skip to content

Kirby 6.0.0

$modelPermissions->has()

Checks if the class defines a dedicated action method for the given action

$modelPermissions->has(string $action): bool

Parameters

Name Type Default
$actionrequired string no default value

Return type

bool

Parent class

Kirby\Guards\ModelPermissions