mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Added permission on restore
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6e7f0728fd
commit
66ce02fc48
|
@ -337,6 +337,7 @@ class BulkAssetsController extends Controller
|
|||
|
||||
}
|
||||
public function restore(Request $request) {
|
||||
$this->authorize('update', Asset::class);
|
||||
$assetIds = $request->get('ids');
|
||||
if (empty($assetIds)) {
|
||||
return redirect()->route('hardware.index')->with('error', trans('admin/hardware/message.restore.nothing_updated'));
|
||||
|
|
Loading…
Reference in a new issue