From 4c4859917599fcd28ec2925c1cb5c7cb5cb4a9cb Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 27 Apr 2016 17:22:50 +0300 Subject: [PATCH] Fix for permissions in payment controller --- app/Http/Controllers/PaymentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index 4654a3e698..223b43bc41 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -590,7 +590,7 @@ class PaymentController extends BaseController { $input = $request->input(); - $this->authorizeUpdate($data); + $this->authorizeUpdate($input); $input['invoice_id'] = Invoice::getPrivateId($input['invoice']); $input['client_id'] = Client::getPrivateId($input['client']);