mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Fixes for Import
This commit is contained in:
parent
dd32a95a65
commit
ce5f84b8c1
@ -204,7 +204,7 @@ class CompanyImport implements ShouldQueue
|
||||
|
||||
$company_owner = $this->company->owner();
|
||||
|
||||
if(Ninja::isFreeHostedClient()){
|
||||
if($this->company->account->isFreeHostedClient()){
|
||||
|
||||
if(count($backup_users) > 1){
|
||||
$this->message = 'Only one user can be in the import for a Free Account';
|
||||
@ -243,7 +243,7 @@ class CompanyImport implements ShouldQueue
|
||||
return false;
|
||||
}
|
||||
|
||||
if(Ninja::isFreeHostedClient() && count($this->backup_file->clients) > config('ninja.quotas.free.clients')){
|
||||
if($this->company->account->isFreeHostedClient() && count($this->backup_file->clients) > config('ninja.quotas.free.clients')){
|
||||
|
||||
$client_count = count($this->backup_file->clients);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user