Skip to content

Commit 7a893bf

Browse files
committed
fix: default per-counter perms
1 parent 6a2e9fd commit 7a893bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/plugins/Counters/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export const zCounter = z.strictObject({
6262
})
6363
.nullable()
6464
.default(null),
65-
can_view: z.boolean().default(false),
66-
can_edit: z.boolean().default(false),
67-
can_reset_all: z.boolean().default(false),
65+
can_view: z.boolean().nullable().default(null),
66+
can_edit: z.boolean().nullable().default(null),
67+
can_reset_all: z.boolean().nullable().default(null),
6868
});
6969

7070
export const zCountersConfig = z.strictObject({

0 commit comments

Comments
 (0)