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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user