summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/org/member.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go
index 0cc5317802..65754b88ec 100644
--- a/routers/api/v1/org/member.go
+++ b/routers/api/v1/org/member.go
@@ -133,7 +133,7 @@ func IsMember(ctx *context.APIContext) {
ctx.Error(500, "IsOrgMember", err)
return
} else if userIsMember {
- userToCheckIsMember, err := ctx.Org.Organization.IsOrgMember(ctx.User.ID)
+ userToCheckIsMember, err := ctx.Org.Organization.IsOrgMember(userToCheck.ID)
if err != nil {
ctx.Error(500, "IsOrgMember", err)
} else if userToCheckIsMember {