From bbbe23437215116b3d38833f115f72cce9878134 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 13 Jun 2022 08:15:02 +1000 Subject: [PATCH] v5.3.100 --- VERSION.txt | 2 +- .../Requests/ClientPortal/Invoices/ShowInvoiceRequest.php | 2 +- config/ninja.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 7fb66c74d101..4b336d6ed820 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.3.99 \ No newline at end of file +5.3.100 \ No newline at end of file diff --git a/app/Http/Requests/ClientPortal/Invoices/ShowInvoiceRequest.php b/app/Http/Requests/ClientPortal/Invoices/ShowInvoiceRequest.php index f9573fd1c3e3..8d246f98bdf9 100644 --- a/app/Http/Requests/ClientPortal/Invoices/ShowInvoiceRequest.php +++ b/app/Http/Requests/ClientPortal/Invoices/ShowInvoiceRequest.php @@ -23,7 +23,7 @@ class ShowInvoiceRequest extends Request */ public function authorize() : bool { - return auth()->guard('contact')->user()->client_id === (int)$this->invoice->client_id + return (int)auth()->guard('contact')->user()->client_id === (int)$this->invoice->client_id && auth()->guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES; } } diff --git a/config/ninja.php b/config/ninja.php index 65016615d0e0..c07e03da7a42 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.3.99', - 'app_tag' => '5.3.99', + 'app_version' => '5.3.100', + 'app_tag' => '5.3.100', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''),