forked from baron/baron-sso
refactoring
This commit is contained in:
@@ -266,15 +266,6 @@ func (h *TenantHandler) ListTenants(c *fiber.Ctx) error {
|
||||
baseTenantIDs = append(baseTenantIDs, *profile.TenantID)
|
||||
}
|
||||
|
||||
// Try to find by companyCode if needed
|
||||
if profile.CompanyCode != "" {
|
||||
for _, t := range allTenants {
|
||||
if strings.EqualFold(t.Slug, profile.CompanyCode) {
|
||||
baseTenantIDs = append(baseTenantIDs, t.ID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
parentMap := make(map[string]string)
|
||||
for _, t := range allTenants {
|
||||
if t.ParentID != nil {
|
||||
|
||||
Reference in New Issue
Block a user