feat: add cerbos access control
This commit is contained in:
5
spec/schemas/account/role.ts
Normal file
5
spec/schemas/account/role.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import z from "zod";
|
||||
|
||||
export const RoleSchema = z.union([z.literal("user"), z.literal("admin")]);
|
||||
|
||||
export type Role = z.infer<typeof RoleSchema>;
|
||||
Reference in New Issue
Block a user