From 2d4a14d4bbbeb28a2ef3280ed9a54d2dfe69844a Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 28 Nov 2023 15:55:41 +0000 Subject: [PATCH] Fixed from rebase :( Signed-off-by: snipe --- app/Http/Controllers/Assets/BulkAssetsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Assets/BulkAssetsController.php b/app/Http/Controllers/Assets/BulkAssetsController.php index 89ed27e8be..dd8b26a193 100644 --- a/app/Http/Controllers/Assets/BulkAssetsController.php +++ b/app/Http/Controllers/Assets/BulkAssetsController.php @@ -86,6 +86,7 @@ class BulkAssetsController extends Controller case 'restore': $this->authorize('update', Asset::class); + $assets = Asset::withTrashed()->find($asset_ids); $assets->each(function ($asset) { $this->authorize('delete', $asset); });