diff --git a/app/[locale]/(protected)/admin/management-user/external/edit/[id]/page.tsx b/app/[locale]/(protected)/admin/management-user/external/edit/[id]/page.tsx index d83c3b5f..452bbb86 100644 --- a/app/[locale]/(protected)/admin/management-user/external/edit/[id]/page.tsx +++ b/app/[locale]/(protected)/admin/management-user/external/edit/[id]/page.tsx @@ -145,6 +145,7 @@ export default function EditUserForm() { password: data.password, passwordConf: data.confirmPassword, isDefault: false, + isAdmin: true, }; loading(); diff --git a/app/[locale]/(protected)/admin/management-user/internal/create/page.tsx b/app/[locale]/(protected)/admin/management-user/internal/create/page.tsx index 34b6b2d5..bcd99c67 100644 --- a/app/[locale]/(protected)/admin/management-user/internal/create/page.tsx +++ b/app/[locale]/(protected)/admin/management-user/internal/create/page.tsx @@ -285,6 +285,7 @@ export default function CreateUserForm() { password: data.password, passwordConf: data.confirmPassword, isDefault: false, + isAdmin: true, }; if (data.role == "OPT-ID") { diff --git a/app/[locale]/(protected)/admin/management-user/internal/edit/[id]/page.tsx b/app/[locale]/(protected)/admin/management-user/internal/edit/[id]/page.tsx index 0e6b83e6..a9a7c1ed 100644 --- a/app/[locale]/(protected)/admin/management-user/internal/edit/[id]/page.tsx +++ b/app/[locale]/(protected)/admin/management-user/internal/edit/[id]/page.tsx @@ -302,7 +302,7 @@ export default function EditUserForm() { async function save(data: z.infer) { let req: any = { - id: id, + id: Number(id), firstName: data.fullname, username: data.username, roleId: data.role, @@ -313,6 +313,7 @@ export default function EditUserForm() { password: data.password, passwordConf: data.confirmPassword, isDefault: false, + isAdmin: true, }; if (data.role == "OPT-ID") {