This commit is contained in:
David Bomba 2022-06-13 08:15:02 +10:00
parent 80b0d19951
commit bbbe234372
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
5.3.99
5.3.100

View File

@ -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;
}
}

View File

@ -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', ''),