mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Merge pull request #13923 from snipe/bug/sc-24098
Quick revert for #13830
This commit is contained in:
commit
eae98d3f35
|
@ -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