Handle checking and unchecking for bulk actions

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2021-10-04 17:18:26 -07:00
parent 52ea172e5d
commit 52caee2a9f
3 changed files with 41 additions and 19 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class AssetsTransformer
$permissions_array['available_actions'] = [
'checkout' => Gate::allows('checkout', Asset::class),
'checkin' => Gate::allows('checkin', Asset::class),
'clone' => Gate::allows('create', Asset::class),
'clone' => false,
'restore' => false,
'update' => (bool) Gate::allows('update', Asset::class),
'delete' => ($asset->assigned_to=='' && Gate::allows('delete', Asset::class)),