[MM-48049] Including users who were removed from group in not_in_group response (#21559)
Automatic Merge
Этот коммит содержится в:
@@ -1527,7 +1527,7 @@ func (us SqlUserStore) SearchInGroup(groupID string, term string, options *model
|
||||
func (us SqlUserStore) SearchNotInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error) {
|
||||
query := us.usersQuery.
|
||||
LeftJoin("GroupMembers gm ON ( gm.UserId = u.Id AND gm.GroupId = ? )", groupID).
|
||||
Where("gm.UserId IS NULL").
|
||||
Where("(gm.UserId IS NULL OR gm.deleteat != 0)").
|
||||
OrderBy("Username ASC").
|
||||
Limit(uint64(options.Limit))
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user