mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Test Auth::guard('api')->user() as user_id
This commit is contained in:
parent
8f31ee318e
commit
15bab7fa9e
|
@ -83,7 +83,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::id();
|
||||
$model->user_id = Auth::guard('api')->user();
|
||||
$model->requestable = Input::has('requestable');
|
||||
|
||||
if ($request->input('custom_fieldset')!='') {
|
||||
|
|
Loading…
Reference in a new issue