mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 22:35:54 +00:00
Test Auth::guard('api')->user() as user_id
This commit is contained in:
@ -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')!='') {
|
||||
|
||||
Reference in New Issue
Block a user