Fixes repo membership check in API (#4341) (#4379)

Untested, since I can't compile (yet).
This commit is contained in:
Nicolas Da Mutten 2018-07-05 22:34:31 +02:00 committed by Lauris BH
parent f096e69e0a
commit 85f3966338
1 changed files with 1 additions and 1 deletions

View File

@ -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 {