public addRule ( boolean $allow, array | string $actions, mixed $resource, Closure | null $condition = null ) : array | |
||
$allow | boolean | True if privilege, false if restriction |
$actions | array | string | Action for the rule |
$resource | mixed | Resource for the rule |
$condition | Closure | null | Optional condition for the rule |
return | array | |