mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Don’t require superadmin for checkin and delete user
This commit is contained in:
parent
734e87f85f
commit
b3f70a046f
|
@ -511,9 +511,6 @@ class UsersController extends Controller
|
|||
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')) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue