diff --git a/app/Http/Controllers/Accessories/AccessoriesController.php b/app/Http/Controllers/Accessories/AccessoriesController.php index feffaa2889..9b5ce37cbf 100755 --- a/app/Http/Controllers/Accessories/AccessoriesController.php +++ b/app/Http/Controllers/Accessories/AccessoriesController.php @@ -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'); + + + } /** diff --git a/app/Http/Transformers/AccessoriesTransformer.php b/app/Http/Transformers/AccessoriesTransformer.php index fffc434cbb..a36e401585 100644 --- a/app/Http/Transformers/AccessoriesTransformer.php +++ b/app/Http/Transformers/AccessoriesTransformer.php @@ -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;