1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Merge pull request #5931 from turbo124/v5-develop

Company Registration
This commit is contained in:
David Bomba 2021-06-05 20:31:41 +10:00 committed by GitHub
commit 3d93d46126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -254,7 +254,7 @@ class CompanySettings extends BaseSettings
public $portal_custom_footer = ''; //@TODO @BEN
public $portal_custom_js = ''; //@TODO @BEN
public $client_can_register = false; //@implemented
public $client_can_register = false; //@deorecated 04/06/2021
public $client_portal_terms = ''; //@TODO @BEN
public $client_portal_privacy_policy = ''; //@TODO @BEN
public $client_portal_enable_uploads = false; //@implemented

View File

@ -33,7 +33,7 @@ class ContactRegister
if($company)
{
abort_unless($company->getSetting('enable_client_registration'), 404);
abort_unless($company->client_can_register, 404);
$request->merge(['key' => $company->company_key]);
@ -49,7 +49,7 @@ class ContactRegister
if($company = Company::where($query)->first())
{
abort_unless($company->getSetting('enable_client_registration'), 404);
abort_unless($company->client_can_register, 404);
$request->merge(['key' => $company->company_key]);