Authority\Authority::allow PHP Method

allow() public method

Define privilege for a given action and resource
public allow ( array | string $actions, mixed $resource, Closure | null $condition = null ) : array | Rule
$actions array | string Action for the rule
$resource mixed Resource for the rule
$condition Closure | null Optional condition for the rule
return array | Rule
    public function allow($actions, $resource, $condition = null)
    {
        return $this->addRule(true, $actions, $resource, $condition);
    }