Fix MembersFinder to never include group invitees.

This was the default behavior, because all members with `user_id` set to
`null` were excluded.
This commit is contained in:
Andreas Brandl 2018-02-20 16:29:16 +01:00
parent a10d09ec65
commit 3dbec2c285

View file

@ -13,7 +13,7 @@ class MembersFinder
if group
group_members = GroupMembersFinder.new(group).execute
group_members = group_members.non_invite unless can?(current_user, :admin_group, group)
group_members = group_members.non_invite
union = Gitlab::SQL::Union.new([project_members, group_members], remove_duplicates: false)