Skip to content

Commit 22272fe

Browse files
7FMzeripath
authored andcommitted
Make /users/{username}/repos list private repos the current user has access to (#8621)
1 parent ace0346 commit 22272fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/user/repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func ListUserRepos(ctx *context.APIContext) {
5252
if ctx.Written() {
5353
return
5454
}
55-
private := ctx.IsSigned && (ctx.User.ID == user.ID || ctx.User.IsAdmin)
55+
private := ctx.IsSigned
5656
listUserRepos(ctx, user, private)
5757
}
5858

0 commit comments

Comments
 (0)