Fix for Viewing invoice as Guest #250

This commit is contained in:
Hillel Coren 2015-03-09 00:13:25 +02:00
parent 612a61c595
commit 886fccadfd

View File

@ -185,7 +185,7 @@ class InvoiceController extends \BaseController
'invoiceLabels' => $client->account->getInvoiceLabels(), 'invoiceLabels' => $client->account->getInvoiceLabels(),
'contact' => $contact, 'contact' => $contact,
'hasToken' => $client->getGatewayToken(), 'hasToken' => $client->getGatewayToken(),
'countGateways' => AccountGateway::scope()->count(), 'countGateways' => AccountGateway::scope(false, $client->account->id)->count(),
); );
return View::make('invoices.view', $data); return View::make('invoices.view', $data);