Skip to content

Commit

Permalink
Quick revert for #13830
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Nov 22, 2023
1 parent 9c4fbbe commit a08dcbd
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 a08dcbd

Please sign in to comment.