publicly display private projects
This commit is contained in:
parent
5673c4d2ac
commit
73c03dc2e0
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue