mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
parent
9c4fbbe915
commit
a08dcbdfdb
|
@ -534,8 +534,10 @@ class AssetsController extends Controller
|
|||
* @since [v4.0]
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function store(StoreAssetRequest $request)
|
||||
public function store(ImageUploadRequest $request)
|
||||
{
|
||||
return Gate::allows('create', new Asset);
|
||||
|
||||
$asset = new Asset();
|
||||
$asset->model()->associate(AssetModel::find((int) $request->get('model_id')));
|
||||
|
||||
|
|
Loading…
Reference in a new issue