From 7a893bf026887210ca600cbf1508d81e244f8bfd Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 1 Jun 2025 01:20:01 +0000 Subject: [PATCH] fix: default per-counter perms --- backend/src/plugins/Counters/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/plugins/Counters/types.ts b/backend/src/plugins/Counters/types.ts index d58de125..82b5eebc 100644 --- a/backend/src/plugins/Counters/types.ts +++ b/backend/src/plugins/Counters/types.ts @@ -62,9 +62,9 @@ export const zCounter = z.strictObject({ }) .nullable() .default(null), - can_view: z.boolean().default(false), - can_edit: z.boolean().default(false), - can_reset_all: z.boolean().default(false), + can_view: z.boolean().nullable().default(null), + can_edit: z.boolean().nullable().default(null), + can_reset_all: z.boolean().nullable().default(null), }); export const zCountersConfig = z.strictObject({