Skip to content

Commit

Permalink
adopt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Oct 15, 2024
1 parent 78c0ad7 commit 5e3b1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/organization/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (opts FindOrgMembersOpts) addTeamMatesOnlyFilter(ctx context.Context, sess
if opts.Doer != nil && opts.IsMember && opts.Doer.IsRestricted {
teamMates := builder.Select("DISTINCT team_user.uid").
From("team_user").
Where(builder.In("team_user.team_id", userTeamIDbuilder(opts.OrgID, opts.Doer.ID))).
Where(builder.In("team_user.team_id", getUserTeamIDsQueryBuilder(opts.OrgID, opts.Doer.ID))).
And(builder.Eq{"team_user.org_id": opts.OrgID})

sess.In("org_user.uid", teamMates)
Expand Down

0 comments on commit 5e3b1af

Please sign in to comment.