Skip to content

PermissionAction

PermissionAction = "read" | "create" | "update" | "delete" | "manage"

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

A permission action: one of the four CRUD operations, or "manage" for all.

  • "read" maps to SELECT queries.
  • "create" maps to INSERT statements.
  • "update" maps to UPDATE statements.
  • "delete" maps to DELETE statements.
  • "manage" is shorthand for granting all four CRUD actions.