Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
460d2936
Commit
460d2936
authored
May 10, 2017
by
Chrysanthi Lagodimou
Browse files
restrict user view
parent
b72620b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/users/_form.html.slim
View file @
460d2936
...
...
@@ -8,7 +8,7 @@
=
f
.
input
:email
-
if
current_user
==
user
=
f
.
input
:password
-
if
current_user
.
superadmin
?
-
if
policy
(
User
).
create
?
=
f
.
input
:role
,
collection:
User
.
role_collection
.row
...
...
Write
Preview
Supports
Markdown
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