diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /app/helpers/invite_members_helper.rb | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'app/helpers/invite_members_helper.rb')
-rw-r--r-- | app/helpers/invite_members_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/invite_members_helper.rb b/app/helpers/invite_members_helper.rb index a2dde29e25d..a682d2712be 100644 --- a/app/helpers/invite_members_helper.rb +++ b/app/helpers/invite_members_helper.rb @@ -36,6 +36,7 @@ module InviteMembersHelper def common_invite_group_modal_data(source, member_class, is_project) { id: source.id, + root_id: source.root_ancestor&.id, name: source.name, default_access_level: Gitlab::Access::GUEST, invalid_groups: source.related_group_ids, @@ -45,9 +46,11 @@ module InviteMembersHelper } end + # Overridden in EE def common_invite_modal_dataset(source) dataset = { id: source.id, + root_id: source.root_ancestor&.id, name: source.name, default_access_level: Gitlab::Access::GUEST } |