mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Fixed bug where assets could be deleted without being checked back in [ch38]
This commit is contained in:
parent
66f557d436
commit
07eead2dbf
|
@ -120,7 +120,7 @@ class AssetsTransformer
|
|||
'clone' => Gate::allows('create', Asset::class) ? true : false,
|
||||
'restore' => false,
|
||||
'update' => (bool) Gate::allows('update', Asset::class),
|
||||
'delete' => (bool) Gate::allows('delete', Asset::class),
|
||||
'delete' => ($asset->assigned_to=='' && Gate::allows('delete', Asset::class) ? true : false),
|
||||
];
|
||||
|
||||
if ($asset->deleted_at!='') {
|
||||
|
|
Loading…
Reference in a new issue