mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02:00
publicly display private projects
This commit is contained in:
parent
5673c4d2ac
commit
73c03dc2e0
@ -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…
x
Reference in New Issue
Block a user