Skip to content
Snippets Groups Projects
Commit c839dce9 authored by Alexander Kovalev's avatar Alexander Kovalev
Browse files

Merge branch 'hotfix-invitation-decline-0.23' into 'release/v0.23'

hotfix: revert manager to LL in case of invitation termination

See merge request mashroom/backend/listing!120
parents 6923e985 4fb30499
No related merge requests found
......@@ -227,6 +227,9 @@ func (srv *serviceImpl) InvitationChange(
lv.Invitation.LandlordInvitation.Pending = false
case invitation.InvitationType_INVITATION_TYPE_LANDLORD_TO_MANAGER:
lv.Invitation.ManagerInvitation.Pending = false
if lv.People.Manager == lv.Invitation.ManagerInvitation.InviteeID {
lv.People.Manager = lv.People.Landlord
}
}
default:
return &invitation.InvitationChangeResponse{}, nil
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment