Skip to content

GrantedAction

GrantedAction = object

Defined in: packages/permissions/src/granted-actions.ts:12

A single granted action for a table, including the matching grants.

  • unrestricted: true means at least one grant has no where clause, so the action is unconditionally permitted for every row.
  • unrestricted: false means all matching grants have where clauses, so whether the action is permitted depends on the specific row.

action: CrudAction

Defined in: packages/permissions/src/granted-actions.ts:13


grants: Grant[]

Defined in: packages/permissions/src/granted-actions.ts:14


unrestricted: boolean

Defined in: packages/permissions/src/granted-actions.ts:15