mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
Fixes repo membership check in API (#4341)
Untested, since I can't compile (yet).
This commit is contained in:
parent
f035dcd4f2
commit
e07d3ad0fc
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue