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;