mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Fix panic in team repos API (#19431)
* Fix panic in team repos API * Fix pagination * fmt
This commit is contained in:
@@ -545,7 +545,7 @@ func GetTeamRepos(ctx *context.APIContext) {
|
||||
ctx.Error(http.StatusInternalServerError, "GetTeamRepos", err)
|
||||
return
|
||||
}
|
||||
repos := make([]*api.Repository, len(team.Repos))
|
||||
repos := make([]*api.Repository, len(teamRepos))
|
||||
for i, repo := range teamRepos {
|
||||
access, err := models.AccessLevel(ctx.Doer, repo)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user