From a08dcbdfdbd8c0a4ec6533d271ce62bd4ae0c893 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 22 Nov 2023 12:25:42 +0000 Subject: [PATCH] Quick revert for #13830 Signed-off-by: snipe --- app/Http/Controllers/Api/AssetsController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 954ba3a4d0e9..049be5dc9a2a 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -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')));