diff options
Diffstat (limited to 'app/views/groups/_invite_members_modal.html.haml')
-rw-r--r-- | app/views/groups/_invite_members_modal.html.haml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/groups/_invite_members_modal.html.haml b/app/views/groups/_invite_members_modal.html.haml index f4f3c8ce8f7..3be1a142ca6 100644 --- a/app/views/groups/_invite_members_modal.html.haml +++ b/app/views/groups/_invite_members_modal.html.haml @@ -1,7 +1,8 @@ -- if can?(current_user, :admin_group_member, group) - .js-invite-members-modal{ data: { id: group.id, - name: group.name, - is_project: 'false', - access_levels: GroupMember.access_level_roles.to_json, - default_access_level: Gitlab::Access::GUEST, - help_link: help_page_url('user/permissions') }.merge(group_select_data(group)) } +- return unless can_manage_members?(group) + +.js-invite-members-modal{ data: { id: group.id, + name: group.name, + is_project: 'false', + access_levels: GroupMember.access_level_roles.to_json, + default_access_level: Gitlab::Access::GUEST, + help_link: help_page_url('user/permissions') }.merge(group_select_data(group)) } |