mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
committing
This commit is contained in:
parent
ec5836dab4
commit
a3353b8496
|
@ -138,12 +138,13 @@ class AccessoriesController extends Controller
|
|||
$accessory->id = null;
|
||||
$accessory->location_id = null;
|
||||
|
||||
//duplicate the image for the cloned accessory
|
||||
copy('uploads/accessories/usb-keyboard.jpg','uploads/accessories/testimage.jpg');
|
||||
|
||||
return view('accessories/edit')
|
||||
->with('item', $accessory);
|
||||
|
||||
copy('uploads/accessories/usb-keyboard.jpg','uploads/accessories/testimage.jpg');
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -52,6 +52,7 @@ class AccessoriesTransformer
|
|||
'update' => Gate::allows('update', Accessory::class),
|
||||
'delete' => Gate::allows('delete', Accessory::class),
|
||||
'clone' => (Gate::allows('create', Accessory::class) && ($accessory->created_at == 'datetime')),
|
||||
|
||||
];
|
||||
|
||||
$permissions_array['user_can_checkout'] = false;
|
||||
|
|
Loading…
Reference in a new issue