Skip to content

Interface: RbacSnapshot ​

Defined in: packages/core/dist/adapter-CMVEI1fo.d.ts:139

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/dist/adapter-CMVEI1fo.d.ts:147
permissionsstring[]-packages/core/dist/adapter-CMVEI1fo.d.ts:141
rolesstring[]-packages/core/dist/adapter-CMVEI1fo.d.ts:140

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