mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Company Registration
This commit is contained in:
parent
dc8603b4ae
commit
e37613a5a1
@ -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
|
||||
|
@ -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]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user