Fixes checkout buttons on licenses list

This commit is contained in:
snipe
2017-04-24 21:37:20 -07:00
parent 6d53a5f58d
commit 59a4e161ff
2 changed files with 21 additions and 7 deletions
@@ -42,6 +42,7 @@ class LicensesTransformer
'supplier' => ($license->supplier) ? ['id' => $license->supplier->id,'name'=> e($license->supplier->name)] : null,
'created_at' => Helper::getFormattedDateObject($license->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($license->updated_at, 'datetime'),
'user_can_checkout' => (bool) ($license->remaincount() > 0),
];
$permissions_array['available_actions'] = [