Skip to content

Commit 5e3b1af

Browse files
committed
adopt changes
1 parent 78c0ad7 commit 5e3b1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/organization/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (opts FindOrgMembersOpts) addTeamMatesOnlyFilter(ctx context.Context, sess
210210
if opts.Doer != nil && opts.IsMember && opts.Doer.IsRestricted {
211211
teamMates := builder.Select("DISTINCT team_user.uid").
212212
From("team_user").
213-
Where(builder.In("team_user.team_id", userTeamIDbuilder(opts.OrgID, opts.Doer.ID))).
213+
Where(builder.In("team_user.team_id", getUserTeamIDsQueryBuilder(opts.OrgID, opts.Doer.ID))).
214214
And(builder.Eq{"team_user.org_id": opts.OrgID})
215215

216216
sess.In("org_user.uid", teamMates)

0 commit comments

Comments
 (0)