feat: limit metrics to admin only or not

This commit is contained in:
diced
2024-02-12 21:33:48 -08:00
parent 96729814a0
commit 9413e9d42a
5 changed files with 27 additions and 11 deletions
+5 -2
View File
@@ -150,7 +150,11 @@ export const schema = z.object({
enabled: z.boolean().default(true),
num_threads: z.number().default(4),
}),
metrics: z.boolean().default(true),
metrics: z.object({
enabled: z.boolean().default(true),
adminOnly: z.boolean().default(false),
showUserSpecific: z.boolean().default(true),
}),
}),
invites: z.object({
enabled: z.boolean().default(true),
@@ -186,7 +190,6 @@ export const schema = z.object({
dark: z.string().default('builtin:dark_gray'),
light: z.string().default('builtin:light_gray'),
}),
metricsShowUserSpecific: z.boolean().default(true),
}),
mfa: z.object({
totp: z.object({