mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-17 23:42:52 +00:00
Fix panic in team repos API (#19431)
* Fix panic in team repos API * Fix pagination * fmt
This commit is contained in:
parent
409ff55a29
commit
ae6a52440a
3 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue