Make /users/{username}/repos list private repos the current user has access to (#8621)

tokarchuk/v1.17
7FM 5 years ago committed by zeripath
parent ace0346c66
commit 22272fe1e4
  1. 2
      routers/api/v1/user/repo.go

@ -52,7 +52,7 @@ func ListUserRepos(ctx *context.APIContext) {
if ctx.Written() {
return
}
private := ctx.IsSigned && (ctx.User.ID == user.ID || ctx.User.IsAdmin)
private := ctx.IsSigned
listUserRepos(ctx, user, private)
}

Loading…
Cancel
Save