mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Check is_large flag when creating a new company
This commit is contained in:
parent
623fbdb229
commit
342cc10bc2
@ -232,7 +232,7 @@ class CompanyController extends BaseController
|
||||
'notifications' => CompanySettings::notificationDefaults(),
|
||||
]);
|
||||
|
||||
if(auth()->user()->company()->account->companies()->where('is_large', 1)->exists())
|
||||
if($company->account->companies()->where('is_large', 1)->exists())
|
||||
{
|
||||
$company->account->companies()->update(['is_large' => true]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user