# `PermitEx.Policy`
[🔗](https://github.com/devaction-labs/permit_ex/blob/v0.2.0/lib/permit_ex/policy.ex#L1)

Behaviour for optional resource-level policy checks.

RBAC answers whether a scope has a permission. A policy can answer whether
that scope may use the permission against a specific resource.

# `authorize`

```elixir
@callback authorize(scope :: term(), resource :: term(), opts :: keyword()) ::
  :ok | true | false | {:error, term()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
