Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Invitation
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
mashplace
backend
Invitation
Commits
9694d621
Commit
9694d621
authored
4 years ago
by
abs
Browse files
Options
Downloads
Patches
Plain Diff
MRM-2047 changed method property Get on GetAdminVerify
parent
025ead38
Branches
feature/MRM-2047
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
impl/invitation.go
+4
-4
4 additions, 4 deletions
impl/invitation.go
with
4 additions
and
4 deletions
impl/invitation.go
+
4
−
4
View file @
9694d621
...
...
@@ -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
.
Get
AdminVerify
(
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
.
Get
AdminVerify
(
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
.
Get
AdminVerify
(
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
.
Get
AdminVerify
(
ctx
,
&
property
.
GetRequest
{
User
:
in
.
User
,
Id
:
inv
.
PropertyId
,
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment