1
0
forked from baron/baron-sso

fix(adminfront): allow tenant admin to view list when managing multiple tenants and fix dev profile fetching

This commit is contained in:
2026-03-04 14:44:45 +09:00
parent 0a784e5534
commit b6c7a9dc43
2 changed files with 5 additions and 3 deletions

View File

@@ -69,8 +69,8 @@ function TenantListPage() {
);
}
// While redirecting
if (profile?.role === "tenant_admin") {
// While redirecting (only if exactly one manageable tenant)
if (profile?.role === "tenant_admin" && (profile.manageableTenants?.length ?? 0) <= 1) {
return null;
}