mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 22:54:24 +00:00
Fix panic in teams API when requesting members (#19360)
This commit is contained in:
parent
ee769f7459
commit
d139c23967
@ -387,7 +387,7 @@ func GetTeamMembers(ctx *context.APIContext) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
members := make([]*api.User, len(ctx.Org.Team.Members))
|
members := make([]*api.User, len(teamMembers))
|
||||||
for i, member := range teamMembers {
|
for i, member := range teamMembers {
|
||||||
members[i] = convert.ToUser(member, ctx.Doer)
|
members[i] = convert.ToUser(member, ctx.Doer)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user