mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +01:00
Switch organization after accepting invitation
This commit is contained in:
@@ -45,6 +45,9 @@ class MemberService
|
|||||||
$member->organization()->associate($organization);
|
$member->organization()->associate($organization);
|
||||||
$member->role = $role->value;
|
$member->role = $role->value;
|
||||||
$member->save();
|
$member->save();
|
||||||
|
|
||||||
|
$user->currentOrganization()->associate($organization);
|
||||||
|
$user->save();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (! $asSuperAdmin) {
|
if (! $asSuperAdmin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user