From d139c23967a2a376ce61acd9a7a1af5887b818f1 Mon Sep 17 00:00:00 2001 From: delvh Date: Mon, 11 Apr 2022 14:49:49 +0200 Subject: [PATCH] Fix panic in teams API when requesting members (#19360) --- routers/api/v1/org/team.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index 206012530f07..d0f1fbef749f 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) }