IGrants
Defined in: src/types/IGrants.ts:59
The grants object passed to / returned by AccessControl. Maps roles to their granted permissions.
Example
Section titled “Example”const grants: IGrants = { admin: { $extend: ['editor'], video: { delete: [{ possession: 'any', attributes: ['*'] }] } }, editor: { video: { read: [{ possession: 'any', attributes: ['*'] }] } }};Indexable
Section titled “Indexable”[
role:string]:IGrantsItem