summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
}