mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Make /users/{username}/repos list private repos the current user has access to (#8621)
This commit is contained in:
		@@ -52,7 +52,7 @@ func ListUserRepos(ctx *context.APIContext) {
 | 
				
			|||||||
	if ctx.Written() {
 | 
						if ctx.Written() {
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	private := ctx.IsSigned && (ctx.User.ID == user.ID || ctx.User.IsAdmin)
 | 
						private := ctx.IsSigned
 | 
				
			||||||
	listUserRepos(ctx, user, private)
 | 
						listUserRepos(ctx, user, private)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user