Skip to content

Interface: RequirePermissionsOptions ​

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

Options of @RequirePermissions(): { any } and { guard }.

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
any?booleanPass when the subject has ANY of the permissions (instead of all). Default: false.PermissionRequirementOptions.anypackages/core/dist/index.d.ts:928
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).RbacDecoratorOptions.guardpackages/nestjs/src/decorators.ts:39

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