mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 08:04:35 -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(),
|
'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]);
|
$company->account->companies()->update(['is_large' => true]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user