Skip to content

Interface: SnapshotOptions<T, G> ​

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

Options of rbac.for(user).snapshot().

Type Parameters ​

Type ParameterDefault type
T extends RbacTypeConfigDefaultRbacTypes
G extends stringDefaultGuardName<T>

Properties ​

PropertyTypeDescriptionDefined in
checkBefore?readonly PermissionsOf<GuardTypes<T, G>>[]Permission names to run the before hook for. Those it denies (returns false for) are listed in the snapshot's denied, which the React and Vue packages honour. Default: none, and the snapshot has no denied.packages/core/src/types.ts:176

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