summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author7FM <41307817+7FM@users.noreply.github.com>2019-10-23 20:46:32 +0200
committerzeripath <art27@cantab.net>2019-10-23 19:46:32 +0100
commit22272fe1e44fb6f1084f34694f6834d97167b3e1 (patch)
tree2e53d175586952f34b588b04ad5d55b270fa14b3
parentace0346c66d9cca9cd7fef0792000de28b116bd6 (diff)
downloadgitea-22272fe1e44fb6f1084f34694f6834d97167b3e1.tar.gz
gitea-22272fe1e44fb6f1084f34694f6834d97167b3e1.zip
Make /users/{username}/repos list private repos the current user has access to (#8621)
-rw-r--r--routers/api/v1/user/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go
index 5848169088..99839b020a 100644
--- a/routers/api/v1/user/repo.go
+++ b/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)
}