Fix panic in teams API when requesting members (#19360)

tokarchuk/v1.17
delvh 3 years ago committed by GitHub
parent ee769f7459
commit d139c23967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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)
}

Loading…
Cancel
Save