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.
Properties
Section titled “Properties”action
Section titled “action”action:
PermissionAction
Defined in: packages/permissions/src/types.ts:86
The permitted operation. "manage" is shorthand for all four CRUD actions.
subject
Section titled “subject”subject:
DrizzleTable|"all"
Defined in: packages/permissions/src/types.ts:88
The Drizzle table this grant applies to, or "all" for every table.
where?
Section titled “where?”
optionalwhere:WhereClause
Defined in: packages/permissions/src/types.ts:90
Optional row-level filter that restricts which rows this grant covers.