Interface: RequirePermissionsOptions
Defined in: packages/nestjs/src/decorators.ts:43
Options of @RequirePermissions(): { any } and { guard }.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
any? | boolean | Pass when the subject has ANY of the permissions (instead of all). Default: false. | PermissionRequirementOptions.any | packages/core/dist/index.d.ts:928 |
guard? | string | Check 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.guard | packages/nestjs/src/decorators.ts:39 |
