mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
feat: define scoped sharing levels
This commit is contained in:
1 parent
ab14fdb6f3
commit
e4e773d543
4 files changed
+106
-10
No files matched your search
@@ -80,6 +80,9 @@ export const inviteGrantSchema = z
|
||||
scope: z
|
||||
.array(z.enum(SHARE_DOMAINS))
|
||||
.min(1)
|
||||
.refine((scope) => new Set(scope).size === scope.length, {
|
||||
message: "Each section can be selected only once",
|
||||
})
|
||||
.nullable()
|
||||
.optional()
|
||||
.describe(
|
||||
|
||||
Reference in new issue
Block a user