mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Formatting for API response
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a32c679519
commit
9b146ae1d2
|
@ -66,8 +66,8 @@ class LocationsTransformer
|
||||||
'update' => Gate::allows('update', Location::class) ? true : false,
|
'update' => Gate::allows('update', Location::class) ? true : false,
|
||||||
'delete' => $location->isDeletable(),
|
'delete' => $location->isDeletable(),
|
||||||
'bulk_selectable' => [
|
'bulk_selectable' => [
|
||||||
'delete' => $location->isDeletable()]
|
'delete' => $location->isDeletable()
|
||||||
,
|
],
|
||||||
'clone' => (Gate::allows('create', Location::class) && ($location->deleted_at == '')),
|
'clone' => (Gate::allows('create', Location::class) && ($location->deleted_at == '')),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue