Don’t require superadmin for checkin and delete user

This commit is contained in:
snipe 2017-01-17 09:19:14 -08:00
parent 734e87f85f
commit b3f70a046f

View file

@ -510,10 +510,7 @@ class UsersController extends Controller
if (($key = array_search(Auth::user()->id, $user_raw_array)) !== false) {
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')) {