From 73c03dc2e03adf79475b88a90caa59d8e3fcd3fa Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 25 Feb 2014 16:50:49 -0700 Subject: [PATCH] publicly display private projects --- pkg/handler/handler.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/handler/handler.go b/pkg/handler/handler.go index bf9914e4..82228b55 100644 --- a/pkg/handler/handler.go +++ b/pkg/handler/handler.go @@ -90,8 +90,9 @@ func (h RepoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } // The User must own the repository OR be a member - // of the Team that owns the repository. - if user.ID != repo.UserID { + // of the Team that owns the repository OR the repo + // must not be private. + if user.ID != repo.UserID && repo.Private == false { if member, _ := database.IsMember(user.ID, repo.TeamID); !member { RenderNotFound(w) return