Skip to content

Commit

Permalink
Merge pull request #13923 from snipe/bug/sc-24098
Browse files Browse the repository at this point in the history
Quick revert for #13830
  • Loading branch information
snipe authored Nov 22, 2023
2 parents 9c4fbbe + a08dcbd commit eae98d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Api/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,10 @@ public function selectlist(Request $request)
* @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')));

Expand Down

0 comments on commit eae98d3

Please sign in to comment.