Interface: RequireRolesOptions
Defined in: packages/nestjs/src/decorators.ts:46
Options of @RequireRoles(): { all } and { guard }.
Extends
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
all? | boolean | Require ALL of the roles (instead of any). Default: false. | RoleRequirementOptions.all | packages/core/dist/index.d.ts:932 |
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 |
