1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for multidb UserController

This commit is contained in:
David Bomba 2021-05-24 11:30:30 +10:00
parent a4891bafa8
commit 6b0d75a666

View File

@ -216,7 +216,8 @@ class UserController extends BaseController
event(new UserWasCreated($user, auth()->user(), $company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
$user->setCompany($company);
$user->company_id = $company->id;
return $this->itemResponse($user);
}