Skip to content

Kirby 5.0.4

$permissions->for()

$permissions->for(string|null $category = null, string|null $action = null, bool $default = false): bool

Parameters

Name Type Default
$category stringornull null
$action stringornull null
$default bool false

Return type

bool

This method modifies the existing $permissions object it is applied to and returns it again.

Parent class

Kirby\Cms\Permissions