mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed from rebase :(
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3b9f069627
commit
2d4a14d4bb
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue