From 22272fe1e44fb6f1084f34694f6834d97167b3e1 Mon Sep 17 00:00:00 2001 From: 7FM <41307817+7FM@users.noreply.github.com> Date: Wed, 23 Oct 2019 20:46:32 +0200 Subject: [PATCH] Make /users/{username}/repos list private repos the current user has access to (#8621) --- routers/api/v1/user/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go index 5848169088a..99839b020aa 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) }