diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-10-24 12:00:42 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-10-24 09:00:42 -0700 |
commit | 4834b68ad107c29ada482f6f79c806366574ad40 (patch) | |
tree | e6c94b1af115ba6721ace0bddb84da8b6531fc58 /store | |
parent | 64f81762cb934b7f3b2cd9e7f7593e2dc78ad9ca (diff) | |
download | chat-4834b68ad107c29ada482f6f79c806366574ad40.tar.gz chat-4834b68ad107c29ada482f6f79c806366574ad40.tar.bz2 chat-4834b68ad107c29ada482f6f79c806366574ad40.zip |
Filter out non-team members from invite to channel modal (#4312)
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_user_store.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go index 8cee9f9d9..7904bdbfe 100644 --- a/store/sql_user_store.go +++ b/store/sql_user_store.go @@ -621,6 +621,7 @@ func (us SqlUserStore) GetProfilesNotInChannel(teamId string, channelId string, INNER JOIN TeamMembers tm ON tm.UserId = u.Id AND tm.TeamId = :TeamId + AND tm.DeleteAt = 0 LEFT JOIN ChannelMembers cm ON cm.UserId = u.Id AND cm.ChannelId = :ChannelId @@ -1146,6 +1147,7 @@ func (us SqlUserStore) SearchNotInChannel(teamId string, channelId string, term INNER JOIN TeamMembers tm ON tm.UserId = u.Id AND tm.TeamId = :TeamId + AND tm.DeleteAt = 0 LEFT JOIN ChannelMembers cm ON cm.UserId = u.Id AND cm.ChannelId = :ChannelId |