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
61a1d1fc
Commit
61a1d1fc
authored
Feb 06, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed radio buttons conditioning to not allow admins change their own permissions
parent
d2f5ee21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
app/views/admin/users/_access_levels_ee.html.haml
app/views/admin/users/_access_levels_ee.html.haml
+7
-14
No files found.
app/views/admin/users/_access_levels_ee.html.haml
View file @
61a1d1fc
...
...
@@ -11,29 +11,22 @@
.form-group
=
f
.
label
:access_level
,
class:
'control-label'
.col-sm-10
=
f
.
radio_button
:access_level
,
:regular
,
checked:
true
=
f
.
radio_button
:access_level
,
:regular
,
disabled:
(
current_user
==
@user
&&
@user
.
is_admin?
)
=
label_tag
:regular
do
Regular
%p
.light
Regular users have access to their groups and projects
-
if
license_allows_auditor_user?
=
f
.
radio_button
:access_level
,
:auditor
=
f
.
radio_button
:access_level
,
:auditor
,
disabled:
(
current_user
==
@user
&&
@user
.
is_admin?
)
=
label_tag
:auditor
do
Auditor
%p
.light
Auditors have read-only access to all groups, projects and users
-
if
current_user
==
@user
=
f
.
radio_button
:access_level
,
:admin
=
label_tag
:admin
do
Admin
%p
.light
You cannot remove your own admin rights
-
else
=
f
.
radio_button
:access_level
,
:admin
=
label_tag
:admin
do
Admin
%p
.light
Administrators have access to all groups, projects and users and can manage all features in this installation
=
f
.
radio_button
:access_level
,
:admin
=
label_tag
:admin
do
Admin
%p
.light
Administrators have access to all groups, projects and users and can manage all features in this installation
.form-group
=
f
.
label
:external
,
class:
'control-label'
...
...
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