Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3894ae3b
Commit
3894ae3b
authored
Feb 16, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ability to change user permissions in group to owner
Closes #28233
parent
93ae3063
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+1
-1
changelogs/unreleased/group-memebrs-owner-level.yml
changelogs/unreleased/group-memebrs-owner-level.yml
+4
-0
spec/features/groups/members/list_spec.rb
spec/features/groups/members/list_spec.rb
+15
-0
No files found.
app/views/shared/members/_member.html.haml
View file @
3894ae3b
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
=
dropdown_title
(
"Change permissions"
)
=
dropdown_title
(
"Change permissions"
)
.dropdown-content
.dropdown-content
%ul
%ul
-
Gitlab
::
Access
.
option
s
.
each
do
|
role
,
role_id
|
-
member
.
class
.
access_level_role
s
.
each
do
|
role
,
role_id
|
%li
%li
=
link_to
role
,
"javascript:void(0)"
,
=
link_to
role
,
"javascript:void(0)"
,
class:
(
"is-active"
if
member
.
access_level
==
role_id
),
class:
(
"is-active"
if
member
.
access_level
==
role_id
),
...
...
changelogs/unreleased/group-memebrs-owner-level.yml
0 → 100644
View file @
3894ae3b
---
title
:
Added option to update to owner for group members
merge_request
:
author
:
spec/features/groups/members/list_spec.rb
View file @
3894ae3b
...
@@ -30,6 +30,21 @@ feature 'Groups members list', feature: true do
...
@@ -30,6 +30,21 @@ feature 'Groups members list', feature: true do
expect
(
second_row
).
to
be_blank
expect
(
second_row
).
to
be_blank
end
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
def
first_row
page
.
all
(
'ul.content-list > li'
)[
0
]
page
.
all
(
'ul.content-list > li'
)[
0
]
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment