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