Skip to content

Commit 70b8193

Browse files
committed
refactor: export $UserPermission
1 parent e444b70 commit 70b8193

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/schemas/src/user/user.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ export const $BasePermissionLevel = z.enum(['ADMIN', 'GROUP_MANAGER', 'STANDARD'
77

88
export type BasePermissionLevel = z.infer<typeof $BasePermissionLevel>;
99

10-
export const $AdditionalUserPermissions = z.array(
11-
z.object({
12-
action: $AppAction,
13-
subject: $AppSubjectName
14-
})
15-
);
10+
export const $UserPermission = z.object({
11+
action: $AppAction,
12+
subject: $AppSubjectName
13+
});
14+
15+
export const $AdditionalUserPermissions = z.array($UserPermission);
1616

1717
export type User = z.infer<typeof $User>;
1818
export const $User = $BaseModel.extend({

0 commit comments

Comments
 (0)