1
0
forked from baron/baron-sso

adminfront 및 백엔드: 전 메뉴 및 탭 수준 ReBAC 기반 접근 제어(Admin Control) 기능 추가 구현 완료

This commit is contained in:
2026-06-12 11:40:56 +09:00
parent d0bdc54286
commit a70755e993
15 changed files with 360 additions and 84 deletions

View File

@@ -1,9 +1,9 @@
import type React from "react";
import { useTenantPermission } from "../hooks/useTenantPermission";
import { useTenantPermission, type TenantPermissionKey } from "../hooks/useTenantPermission";
interface TenantPermissionGuardProps {
tenantId: string;
relation: "view" | "manage" | "manage_admins";
relation: TenantPermissionKey;
fallback?: React.ReactNode;
children: React.ReactNode;
}