There was an error while loading. Please reload this page.
1 parent 358bd1b commit a82362eCopy full SHA for a82362e
1 file changed
pkg/account/api/admin_account.go
@@ -418,7 +418,7 @@ func (s *AccountService) getMyOrganizations(
418
if accWithOrg.AccountV2.Disabled || accWithOrg.Organization.Disabled || accWithOrg.Organization.Archived {
419
continue
420
}
421
- // If the user is an admin or owner, no need to filter environments.
+ // Add the organization if the account is an admin or owner.
422
// Otherwise, we check if the account is enabled in any environment in this organization.
423
if accWithOrg.AccountV2.OrganizationRole == accountproto.AccountV2_Role_Organization_ADMIN ||
424
accWithOrg.AccountV2.OrganizationRole == accountproto.AccountV2_Role_Organization_OWNER {
0 commit comments