Authority\Authority::deny PHP Method

deny() public method

Define restriction for a given action and resource
public deny ( 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 deny($actions, $resource, $condition = null)
    {
        return $this->addRule(false, $actions, $resource, $condition);
    }