From ad2ab81ee43a8652f66e89a738b5282befdd479b Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 7 Apr 2017 19:49:02 +0100 Subject: PLT-6254: Search not in teams include removed members. (#6020) --- store/sql_user_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store/sql_user_store.go') diff --git a/store/sql_user_store.go b/store/sql_user_store.go index 1a8ff5c90..2b1d34ea9 100644 --- a/store/sql_user_store.go +++ b/store/sql_user_store.go @@ -1298,7 +1298,7 @@ func (us SqlUserStore) SearchNotInTeam(notInTeamId string, term string, options ON tm.UserId = Users.Id AND tm.TeamId = :NotInTeamId WHERE - tm.UserId IS NULL + (tm.UserId IS NULL OR tm.DeleteAt != 0) SEARCH_CLAUSE INACTIVE_CLAUSE ORDER BY Users.Username ASC -- cgit v1.2.3-1-g7c22