From 886fccadfd3deb9a10c4489f092dd93f674c9728 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 9 Mar 2015 00:13:25 +0200 Subject: [PATCH] Fix for Viewing invoice as Guest #250 --- app/controllers/InvoiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index dabbb0c00c10..28a04b3cbaf9 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -185,7 +185,7 @@ class InvoiceController extends \BaseController 'invoiceLabels' => $client->account->getInvoiceLabels(), 'contact' => $contact, 'hasToken' => $client->getGatewayToken(), - 'countGateways' => AccountGateway::scope()->count(), + 'countGateways' => AccountGateway::scope(false, $client->account->id)->count(), ); return View::make('invoices.view', $data);