Commit 3dbec2c2 authored by Andreas Brandl's avatar Andreas Brandl

Fix MembersFinder to never include group invitees.

This was the default behavior, because all members with `user_id` set to
`null` were excluded.
parent a10d09ec
...@@ -13,7 +13,7 @@ class MembersFinder ...@@ -13,7 +13,7 @@ class MembersFinder
if group if group
group_members = GroupMembersFinder.new(group).execute 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) union = Gitlab::SQL::Union.new([project_members, group_members], remove_duplicates: false)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment