mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +00:00
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
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue