From 80ec788a2a9739c3f9108245d8f9a07d8f3d3867 Mon Sep 17 00:00:00 2001 From: chan Date: Tue, 16 Jun 2026 18:05:08 +0900 Subject: [PATCH] =?UTF-8?q?adminfront:=20=EB=84=A4=EC=9D=B4=EB=B2=84?= =?UTF-8?q?=EC=9B=8D=EC=8A=A4=20=EC=97=B0=EB=8F=99=20=ED=83=AD=20=EB=85=B8?= =?UTF-8?q?=EC=B6=9C=20=EC=A1=B0=EA=B1=B4=EC=9D=84=20=EC=9D=B8=EA=B0=80=20?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=EA=B3=BC=20=EB=8F=99=EA=B8=B0?= =?UTF-8?q?=ED=99=94=ED=95=98=EA=B3=A0,=20=EC=84=B8=EB=B6=80=20=EA=B6=8C?= =?UTF-8?q?=ED=95=9C=20=ED=83=AD=EC=97=90=20=EC=B5=9C=EA=B3=A0=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=EC=9E=90=20=EC=A0=84=EC=9A=A9=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EB=B0=B0=EB=84=88=20=EB=B0=98=EC=98=81=20=EC=99=84=EB=A3=8C=20?= =?UTF-8?q?(#1183)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/tenants/hooks/useTenantPermission.ts | 4 +++- .../src/features/tenants/routes/TenantDetailPage.tsx | 12 ++++++++++++ .../routes/TenantFineGrainedPermissionsTab.tsx | 8 ++++++++ adminfront/src/lib/adminApi.ts | 2 ++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/adminfront/src/features/tenants/hooks/useTenantPermission.ts b/adminfront/src/features/tenants/hooks/useTenantPermission.ts index b7c3c5e8..19241fd7 100644 --- a/adminfront/src/features/tenants/hooks/useTenantPermission.ts +++ b/adminfront/src/features/tenants/hooks/useTenantPermission.ts @@ -13,7 +13,9 @@ export type TenantPermissionKey = | "view_organization" | "manage_organization" | "view_schema" - | "manage_schema"; + | "manage_schema" + | "view_worksmobile" + | "manage_worksmobile"; export function useTenantPermission(tenantId: string) { const { data: profile } = useQuery({ diff --git a/adminfront/src/features/tenants/routes/TenantDetailPage.tsx b/adminfront/src/features/tenants/routes/TenantDetailPage.tsx index e7f97f5f..1f26ab88 100644 --- a/adminfront/src/features/tenants/routes/TenantDetailPage.tsx +++ b/adminfront/src/features/tenants/routes/TenantDetailPage.tsx @@ -104,6 +104,18 @@ function TenantDetailPage() { > {t("ui.admin.tenants.detail.tab_organization", "조직 관리")} + {(hasPermission("view_worksmobile") || hasPermission("view")) && ( + + {t("ui.admin.tenants.detail.tab_worksmobile", "네이버웍스 연동")} + + )} {hasPermission("view") && ( + {!isWritable && ( +
+ {t( + "msg.admin.tenants.relations.super_admin_only_desc", + "이 화면의 권한 설정은 시스템 최고 관리자(super_admin)만 수정할 수 있습니다.", + )} +
+ )}
diff --git a/adminfront/src/lib/adminApi.ts b/adminfront/src/lib/adminApi.ts index 46a5a5d4..2c3b46f6 100644 --- a/adminfront/src/lib/adminApi.ts +++ b/adminfront/src/lib/adminApi.ts @@ -45,6 +45,8 @@ export type TenantSummary = { manage_organization?: boolean; view_schema?: boolean; manage_schema?: boolean; + view_worksmobile?: boolean; + manage_worksmobile?: boolean; }; createdAt: string; updatedAt: string;