Fixes for restricting csv imports
This commit is contained in:
parent
be19d42e78
commit
3d32cc7ac8
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ class BaseImport
|
|||
$is_free_hosted_client = $this->company->account->isFreeHostedClient();
|
||||
$hosted_client_count = $this->company->account->hosted_client_count;
|
||||
|
||||
if($this->factory_name instanceof ClientFactory && $is_free_hosted_client && (count($data) > $hosted_client_count))
|
||||
if($this->factory_name == 'App\Factory\ClientFactory' && $is_free_hosted_client && (count($data) > $hosted_client_count))
|
||||
{
|
||||
$this->error_array[$entity_type][] = [
|
||||
$entity_type => 'client',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue