Quick revert for #13830

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-11-22 12:25:42 +00:00
parent 9c4fbbe915
commit a08dcbdfdb

View file

@ -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')));