Kits checkout. But only with models.

This commit is contained in:
Minaev Dmitriy
2018-11-13 20:33:32 +03:00
parent 79d979f47f
commit 0bbe499414
9 changed files with 346 additions and 38 deletions
@@ -30,10 +30,11 @@ class PredefinedKitsTransformer
$permissions_array['available_actions'] = [
'update' => Gate::allows('update', PredefinedKit::class),
'delete' => Gate::allows('delete', PredefinedKit::class),
'checkout' => Gate::allows('checkout', PredefinedKit::class) ? true : false,
// 'clone' => Gate::allows('create', PredefinedKit::class),
// 'restore' => Gate::allows('create', PredefinedKit::class),
];
$array['user_can_checkout'] = true;
$array += $permissions_array;
return $array;
}