mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 06:56:42 +00:00
publicly display private projects
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user