publicly display private projects

This commit is contained in:
Brad Rydzewski 2014-02-25 16:50:49 -07:00
parent 5673c4d2ac
commit 73c03dc2e0

View file

@ -90,8 +90,9 @@ func (h RepoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
// The User must own the repository OR be a member // The User must own the repository OR be a member
// of the Team that owns the repository. // of the Team that owns the repository OR the repo
if user.ID != repo.UserID { // must not be private.
if user.ID != repo.UserID && repo.Private == false {
if member, _ := database.IsMember(user.ID, repo.TeamID); !member { if member, _ := database.IsMember(user.ID, repo.TeamID); !member {
RenderNotFound(w) RenderNotFound(w)
return return