Skip to content
Snippets Groups Projects
Commit 9694d621 authored by abs's avatar abs
Browse files

MRM-2047 changed method property Get on GetAdminVerify

parent 025ead38
No related merge requests found
......@@ -209,7 +209,7 @@ func (server *serverImpl) declineInvitation(ctx context.Context, id string) (*in
return errResponse, err
}
prop, err := PropertyService.Get(ctx, &property.GetRequest{
prop, err := PropertyService.GetAdminVerify(ctx, &property.GetRequest{
Id: model.PropertyId,
User: model.InviterId,
})
......@@ -325,7 +325,7 @@ func (server *serverImpl) CreateInvitation(ctx context.Context, req *invitation.
switch invitationType {
case invitation.InvitationType_LANDLORD_INVITATION: //auto set landlord to property
prop, err := PropertyService.Get(ctx, &property.GetRequest{
prop, err := PropertyService.GetAdminVerify(ctx, &property.GetRequest{
User: req.GetInviter().GetId(),
Id: req.GetProperty().GetId(),
})
......@@ -373,7 +373,7 @@ func (server *serverImpl) CreateInvitation(ctx context.Context, req *invitation.
}
}
case invitation.InvitationType_MANAGER_INVITATION: //if property in Listed state, set landlord as manager for a time
prop, err := PropertyService.Get(ctx, &property.GetRequest{
prop, err := PropertyService.GetAdminVerify(ctx, &property.GetRequest{
User: req.GetInviter().GetId(),
Id: req.GetProperty().GetId(),
})
......@@ -563,7 +563,7 @@ func (server *serverImpl) AcceptInvitation(ctx context.Context, in *invitation.I
log.Infof("AcceptInvitation in.GetType() %v\n", in.GetType())
switch inv.Type {
case invitation.InvitationType_LANDLORD_INVITATION, invitation.InvitationType_MANAGER_TO_LANDLORD_INVITATION: //set inviter as Manager
prop, err := PropertyService.Get(ctx, &property.GetRequest{
prop, err := PropertyService.GetAdminVerify(ctx, &property.GetRequest{
User: in.User,
Id: inv.PropertyId,
})
......
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