FEATURE: allow user edit only for admin

This commit is contained in:
Michal Kváček
2016-01-29 12:26:39 +01:00
parent 527b482ab8
commit f262be1dcb
2 changed files with 23 additions and 17 deletions
@@ -18,14 +18,13 @@
@endif
</label>
<label>
@lang('admin/userManagement.password') <em>(@lang('admin/userManagement.passwordLeaveEmpty'))</em>
<input type="text" name="password" value="">
</label>
@if (\Auth::user()->role == \App\Models\User::ROLE_ADMIN)
<label>
@lang('admin/userManagement.password') <em>(@lang('admin/userManagement.passwordLeaveEmpty'))</em>
<input type="text" name="password" value="">
</label>
<label>
@lang('admin/userManagement.roles')