# RequiresPlan

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/billing/requires-plan.decorator.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/billing/requires-plan.decorator.ts#L20)

Gate a route (or controller) to organizations on `plan` or higher.
Use together with `PlanGuard` (and after `JwtAuthGuard`, which populates
`request.user`):

## Signature

```ts
function RequiresPlan(plan: PlanLevel)
```

## Parameters

| Name | Type |
|---|---|
| `plan` | `PlanLevel` |
