Skip to content

Grant

Grant = object

Defined in: packages/permissions/src/types.ts:84

A single permission grant: an action on a subject, optionally restricted by a where clause.

action: PermissionAction

Defined in: packages/permissions/src/types.ts:86

The permitted operation. "manage" is shorthand for all four CRUD actions.


subject: DrizzleTable | "all"

Defined in: packages/permissions/src/types.ts:88

The Drizzle table this grant applies to, or "all" for every table.


optional where: WhereClause

Defined in: packages/permissions/src/types.ts:90

Optional row-level filter that restricts which rows this grant covers.