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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
2c502524
Commit
2c502524
authored
Jan 11, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6025 from jvanbaarsen/fix-for-admin-user-edit
Fix for edit user as admin
parents
d88aafcb
34c8ca28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+6
-2
No files found.
app/views/admin/users/_form.html.haml
View file @
2c502524
...
@@ -56,8 +56,12 @@
...
@@ -56,8 +56,12 @@
.form-group
.form-group
=
f
.
label
:admin
,
class:
'control-label'
=
f
.
label
:admin
,
class:
'control-label'
.col-sm-10
=
f
.
check_box
:admin
-
if
current_user
==
@user
-
unless
@user
.
new_record?
.col-sm-10
=
f
.
check_box
:admin
,
disabled:
true
.col-sm-10
You cannot remove your own admin rights
-
else
.col-sm-10
=
f
.
check_box
:admin
-
unless
@user
.
new_record?
||
current_user
==
@user
.alert.alert-danger
.alert.alert-danger
-
if
@user
.
blocked?
-
if
@user
.
blocked?
%p
This user is blocked and is not able to login to GitLab
%p
This user is blocked and is not able to login to GitLab
...
...
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