From c320ff57c35de01b3808b2d488a8efd87cb5d3b5 Mon Sep 17 00:00:00 2001 From: Nick O'Ferrall Date: Thu, 28 Nov 2024 12:24:40 +0000 Subject: [PATCH] fix: show public teams (#10537) --- packages/server/graphql/public/types/Organization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/graphql/public/types/Organization.ts b/packages/server/graphql/public/types/Organization.ts index e44231e107f..cb099adf5b3 100644 --- a/packages/server/graphql/public/types/Organization.ts +++ b/packages/server/graphql/public/types/Organization.ts @@ -90,7 +90,7 @@ const Organization: OrganizationResolvers = { dataLoader.get('teamsByOrgIds').load(orgId), dataLoader.get('featureFlagByOwnerId').load({ownerId: orgId, featureName: 'publicTeams'}) ]) - if (!isSuperUser(authToken) || !hasPublicTeamsFlag) return [] + if (!isSuperUser(authToken) && !hasPublicTeamsFlag) return [] const publicTeams = allTeamsOnOrg.filter((team) => !isTeamMember(authToken, team.id)) return publicTeams },