mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Don’t require superadmin for checkin and delete user
This commit is contained in:
parent
734e87f85f
commit
b3f70a046f
|
@ -510,10 +510,7 @@ class UsersController extends Controller
|
||||||
if (($key = array_search(Auth::user()->id, $user_raw_array)) !== false) {
|
if (($key = array_search(Auth::user()->id, $user_raw_array)) !== false) {
|
||||||
unset($user_raw_array[$key]);
|
unset($user_raw_array[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Auth::user()->isSuperUser()) {
|
|
||||||
return redirect()->route('users')->with('error', trans('admin/users/message.insufficient_permissions'));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!config('app.lock_passwords')) {
|
if (!config('app.lock_passwords')) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue