mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 23:33:33 +01:00
Fix panic in teams API when requesting members (#19360)
This commit is contained in:
parent
ee769f7459
commit
d139c23967
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue