mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed admin -> adminuser property
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
41a6b34768
commit
b93fc80011
|
@ -78,9 +78,9 @@ class AccessoriesTransformer
|
|||
'id' => $checkout->id,
|
||||
'assigned_to' => $this->transformAssignedTo($checkout),
|
||||
'note' => $checkout->note ? e($checkout->note) : null,
|
||||
'created_by' => $checkout->admin ? [
|
||||
'id' => (int) $checkout->admin->id,
|
||||
'name'=> e($checkout->admin->present()->fullName),
|
||||
'created_by' => $checkout->adminuser ? [
|
||||
'id' => (int) $checkout->adminuser->id,
|
||||
'name'=> e($checkout->adminuser->present()->fullName),
|
||||
]: null,
|
||||
'created_at' => Helper::getFormattedDateObject($checkout->created_at, 'datetime'),
|
||||
'available_actions' => Gate::allows('checkout', Accessory::class) ? ['checkin' => true] : ['checkin' => false],
|
||||
|
|
Loading…
Reference in a new issue