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:
parent
a10d09ec65
commit
3dbec2c285
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue