diff --git a/src/app/admin-panel/page.tsx b/src/app/admin-panel/page.tsx index d50a2bc..d4e3111 100644 --- a/src/app/admin-panel/page.tsx +++ b/src/app/admin-panel/page.tsx @@ -830,12 +830,11 @@ function AuthManagement() { const onCreate = async () => { const r = await Swal.fire({ title: "권한그룹 생성", - html: ` - `, + html: ``, showCancelButton: true, confirmButtonText: "생성", preConfirm: () => ({ auth_name: (document.getElementById("sw_name") as HTMLInputElement).value, - auth_code: (document.getElementById("sw_code") as HTMLInputElement).value, + // auth_code 는 서버에서 자동 생성 }), }); if (!r.isConfirmed || !r.value?.auth_name) return; @@ -848,12 +847,11 @@ function AuthManagement() { const onRename = async (g: AuthGroup) => { const r = await Swal.fire({ title: "권한 그룹 수정", icon: "info", - html: ` - `, + html: ``, showCancelButton: true, showDenyButton: true, denyButtonText: "삭제", confirmButtonText: "저장", preConfirm: () => ({ auth_name: (document.getElementById("sw_name") as HTMLInputElement).value, - auth_code: (document.getElementById("sw_code") as HTMLInputElement).value, + auth_code: g.AUTH_CODE ?? "", // 기존 코드 유지 }), }); if (r.isDenied) { @@ -897,7 +895,6 @@ function AuthManagement() { title="더블클릭: 수정/삭제" >