Skip to content

RequiresPlan

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/billing/requires-plan.decorator.ts

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

NameType
planPlanLevel

Was this page helpful?

Download as PDF