FIX #1438: disable role and status change for logged user
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<input type="text" name="password" value="">
|
<input type="text" name="password" value="">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
@if (\Auth::user()->role == \App\Models\User::ROLE_ADMIN)
|
@if (\Auth::user()->role == \App\Models\User::ROLE_ADMIN && \Auth::user()->id != $user->id)
|
||||||
<label>
|
<label>
|
||||||
@lang('admin/userManagement.roles')
|
@lang('admin/userManagement.roles')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user