diff options
author | delvh <dev.lh@web.de> | 2022-04-11 14:49:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 20:49:49 +0800 |
commit | d139c23967a2a376ce61acd9a7a1af5887b818f1 (patch) | |
tree | 2fc0a4ae36bb31868b946057ac425ed481978359 | |
parent | ee769f7459ffba310563cd735f503d3d7576da60 (diff) | |
download | gitea-d139c23967a2a376ce61acd9a7a1af5887b818f1.tar.gz gitea-d139c23967a2a376ce61acd9a7a1af5887b818f1.zip |
Fix panic in teams API when requesting members (#19360)
-rw-r--r-- | routers/api/v1/org/team.go | 2 |
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) } |