We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2165a5 commit c1d5983Copy full SHA for c1d5983
routers/api/v1/user/repo.go
@@ -25,8 +25,8 @@ func listUserRepos(ctx *context.APIContext, u *models.User) {
25
apiRepos[i] = ownRepos[i].APIFormat(models.AccessModeOwner)
26
}
27
// Set repositories user has access to.
28
- for i := len(ownRepos); i < len(apiRepos); i++ {
29
- apiRepos[i] = accessibleRepos[i]
+ for i := 0; i < len(accessibleRepos); i++ {
+ apiRepos[i+len(ownRepos)] = accessibleRepos[i]
30
31
ctx.JSON(200, &apiRepos)
32
0 commit comments