1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

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

This commit is contained in:
7FM 2019-10-23 20:46:32 +02:00 committed by zeripath
parent ace0346c66
commit 22272fe1e4

View File

@ -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)
}