Skip to content

Commit a82362e

Browse files
committed
chore: fix comment
Signed-off-by: Alessandro Yuichi Okimoto <yuichijpn@gmail.com>
1 parent 358bd1b commit a82362e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/account/api/admin_account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ func (s *AccountService) getMyOrganizations(
418418
if accWithOrg.AccountV2.Disabled || accWithOrg.Organization.Disabled || accWithOrg.Organization.Archived {
419419
continue
420420
}
421-
// If the user is an admin or owner, no need to filter environments.
421+
// Add the organization if the account is an admin or owner.
422422
// Otherwise, we check if the account is enabled in any environment in this organization.
423423
if accWithOrg.AccountV2.OrganizationRole == accountproto.AccountV2_Role_Organization_ADMIN ||
424424
accWithOrg.AccountV2.OrganizationRole == accountproto.AccountV2_Role_Organization_OWNER {

0 commit comments

Comments
 (0)