aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2022-04-11 14:49:49 +0200
committerGitHub <noreply@github.com>2022-04-11 20:49:49 +0800
commitd139c23967a2a376ce61acd9a7a1af5887b818f1 (patch)
tree2fc0a4ae36bb31868b946057ac425ed481978359
parentee769f7459ffba310563cd735f503d3d7576da60 (diff)
downloadgitea-d139c23967a2a376ce61acd9a7a1af5887b818f1.tar.gz
gitea-d139c23967a2a376ce61acd9a7a1af5887b818f1.zip
Fix panic in teams API when requesting members (#19360)
-rw-r--r--routers/api/v1/org/team.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go
index 206012530f..d0f1fbef74 100644
--- a/routers/api/v1/org/team.go
+++ b/routers/api/v1/org/team.go
@@ -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)
}