diff --git a/apps/cert/core/domain/Rbac/RbacService.ts b/apps/cert/core/domain/Rbac/RbacService.ts index 99e0a94..58a72d7 100644 --- a/apps/cert/core/domain/Rbac/RbacService.ts +++ b/apps/cert/core/domain/Rbac/RbacService.ts @@ -108,7 +108,7 @@ export class RbacService { name: r.name, })); const user = { - id: Math.max(...this.userList.map((u) => u.id!)), + id: Date.now(), roles: roleMapping.filter((r) => roleIds?.includes(r.id!)), isEnabled: true, username, diff --git a/apps/cert/src/modules/User/List/CreateUserForm.tsx b/apps/cert/src/modules/User/List/CreateUserForm.tsx index 3694a1b..d1bedae 100644 --- a/apps/cert/src/modules/User/List/CreateUserForm.tsx +++ b/apps/cert/src/modules/User/List/CreateUserForm.tsx @@ -49,7 +49,7 @@ export const CreateUserForm = (props: CreateUserFormProps) => { - +