Skip to content

Commit

Permalink
fix: show public teams (#10537)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall authored Nov 28, 2024
1 parent 99f0094 commit c320ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/graphql/public/types/Organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit c320ff5

Please sign in to comment.