diff options
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r-- | store/sql_user_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |