From 9623dba2c8dac4a5517a916f4d7c56a0ca9be0dd Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 1 Dec 2020 21:22:48 +1100 Subject: [PATCH] fix for showinvoicerequest --- app/Http/Requests/ClientPortal/ShowInvoiceRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/ClientPortal/ShowInvoiceRequest.php b/app/Http/Requests/ClientPortal/ShowInvoiceRequest.php index fef7bb800963..0fa25695e129 100644 --- a/app/Http/Requests/ClientPortal/ShowInvoiceRequest.php +++ b/app/Http/Requests/ClientPortal/ShowInvoiceRequest.php @@ -22,6 +22,6 @@ class ShowInvoiceRequest extends Request */ public function authorize() : bool { - return auth('contact')->user()->client->id === $this->invoice->client_id; + return auth('contact')->user()->client->id == $this->invoice->client_id; } }