mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -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':
|
case 'restore':
|
||||||
$this->authorize('update', Asset::class);
|
$this->authorize('update', Asset::class);
|
||||||
|
$assets = Asset::withTrashed()->find($asset_ids);
|
||||||
$assets->each(function ($asset) {
|
$assets->each(function ($asset) {
|
||||||
$this->authorize('delete', $asset);
|
$this->authorize('delete', $asset);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue