Skip to content

Commit

Permalink
Fixes repo membership check in API (#4341)
Browse files Browse the repository at this point in the history
Untested, since I can't compile (yet).
  • Loading branch information
cleverer authored and lunny committed Jul 5, 2018
1 parent f035dcd commit e07d3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/org/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e07d3ad

Please sign in to comment.