diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 85019ad903..8abfab88a1 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -420,7 +420,7 @@ class AssetsController extends Controller */ public function update(Request $request, $id) { - $this->authorize('create', Asset::class); + $this->authorize('edit', Asset::class); if ($asset = Asset::find($id)) { ($request->has('model_id')) ?