summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authordelvh <dev.lh@web.de>2022-04-11 14:49:49 +0200
committerGitHub <noreply@github.com>2022-04-11 14:49:49 +0200
commitd139c23967a2a376ce61acd9a7a1af5887b818f1 (patch)
tree2fc0a4ae36bb31868b946057ac425ed481978359 /routers/api
parentAdd logic to switch between source/rendered on Markdown (#19356) (diff)
downloadforgejo-d139c23967a2a376ce61acd9a7a1af5887b818f1.tar.xz
forgejo-d139c23967a2a376ce61acd9a7a1af5887b818f1.zip
Fix panic in teams API when requesting members (#19360)
Diffstat (limited to 'routers/api')
-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)
}