Interface: RequirePermissionOptions
Defined in: packages/nuxt/src/server.ts:79
Options of requirePermission(): { 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 server's (subject.withScope({ guard })), like spatie's role:admin,api. Default: the guard of createRbacServer(). | RequireGuardOptions.guard | packages/nuxt/src/server.ts:75 |
