Skip to content

Interface: RbacSnapshot ​

Defined in: packages/core/src/types.ts:159

Serializable summary of a subject's access — handy for sending to the client (React, Vue, ...).

Properties ​

PropertyTypeDescriptionDefined in
denied?string[]Permission names the server's before hook denies to this subject, so the UI hides them even for a super-admin. Only present when the snapshot was made with snapshot({ checkBefore: [...] }); a snapshot without it behaves as before.packages/core/src/types.ts:167
permissionsstring[]-packages/core/src/types.ts:161
rolesstring[]-packages/core/src/types.ts:160

Released under the MIT License. Inspired by spatie/laravel-permission.