Skip to content

Commit

Permalink
Fix panic in teams API when requesting members (go-gitea#19360)
Browse files Browse the repository at this point in the history
  • Loading branch information
delvh authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent 24a98ec commit 42e026e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/org/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func GetTeamMembers(ctx *context.APIContext) {
return
}

members := make([]*api.User, len(ctx.Org.Team.Members))
members := make([]*api.User, len(teamMembers))
for i, member := range teamMembers {
members[i] = convert.ToUser(member, ctx.Doer)
}
Expand Down

0 comments on commit 42e026e

Please sign in to comment.