Skip to content

Interface: RbacDecoratorOptions ​

Defined in: packages/nestjs/src/decorators.ts:34

The options every requirement decorator takes (last argument).

Extended by ​

Properties ​

PropertyTypeDescriptionDefined in
guard?stringCheck in this guard instead of the request's (subject.withScope({ guard })), like spatie's role:admin,api. Default: the guard of the resolved subject (RbacModule guard option).packages/nestjs/src/decorators.ts:39

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