Added ability to change user permissions in group to owner
Closes #28233
This commit is contained in:
parent
93ae3063ad
commit
3894ae3bd0
3 changed files with 20 additions and 1 deletions
|
@ -61,7 +61,7 @@
|
|||
= dropdown_title("Change permissions")
|
||||
.dropdown-content
|
||||
%ul
|
||||
- Gitlab::Access.options.each do |role, role_id|
|
||||
- member.class.access_level_roles.each do |role, role_id|
|
||||
%li
|
||||
= link_to role, "javascript:void(0)",
|
||||
class: ("is-active" if member.access_level == role_id),
|
||||
|
|
4
changelogs/unreleased/group-memebrs-owner-level.yml
Normal file
4
changelogs/unreleased/group-memebrs-owner-level.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Added option to update to owner for group members
|
||||
merge_request:
|
||||
author:
|
|
@ -30,6 +30,21 @@ feature 'Groups members list', feature: true do
|
|||
expect(second_row).to be_blank
|
||||
end
|
||||
|
||||
it 'updates user to owner level', :js do
|
||||
group.add_owner(user1)
|
||||
group.add_developer(user2)
|
||||
|
||||
visit group_group_members_path(group)
|
||||
|
||||
page.within(second_row) do
|
||||
click_button('Developer')
|
||||
|
||||
click_link('Owner')
|
||||
|
||||
expect(page).to have_button('Owner')
|
||||
end
|
||||
end
|
||||
|
||||
def first_row
|
||||
page.all('ul.content-list > li')[0]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue