Check is_large flag when creating a new company

This commit is contained in:
= 2022-05-03 09:04:44 +10:00
parent 623fbdb229
commit 342cc10bc2

View File

@ -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]);
}