Skip to content

Interface: RequirePermissionOptions ​

Defined in: packages/nuxt/src/server.ts:79

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

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