Fixed from rebase :(

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-11-28 15:55:41 +00:00
parent 3b9f069627
commit 2d4a14d4bb

View file

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