Fixes #4000 - user_id blank

This commit is contained in:
snipe 2017-09-25 11:53:10 -07:00
parent d49b67d033
commit 865950e766

View file

@ -82,7 +82,7 @@ class AssetModelsController extends Controller
$model->manufacturer_id = $request->input('manufacturer_id');
$model->category_id = $request->input('category_id');
$model->notes = $request->input('notes');
$model->user_id = Auth::guard('api')->user();
$model->user_id = Auth::id();
$model->requestable = Input::has('requestable');
if ($request->input('custom_fieldset')!='') {