Commit 460d2936 authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

restrict user view

parent b72620b5
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment