]> source.dussan.org Git - gitea.git/commitdiff
Make /users/{username}/repos list private repos the current user has access to (...
author7FM <41307817+7FM@users.noreply.github.com>
Wed, 23 Oct 2019 18:46:32 +0000 (20:46 +0200)
committerzeripath <art27@cantab.net>
Wed, 23 Oct 2019 18:46:32 +0000 (19:46 +0100)
routers/api/v1/user/repo.go

index 5848169088a89cfe3eee917d2116366cf6d63bae..99839b020aa999622c036df10e657e951143fe3d 100644 (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)
 }