mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 03:41:01 +00:00
Fix SCM visibility if user visibility is private (#1217)
Closes https://codeberg.org/Codeberg-CI/feedback/issues/74
This commit is contained in:
parent
c2ba272871
commit
7838f84b69
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func toRepo(from *gitea.Repository) *model.Repo {
|
|||
FullName: from.FullName,
|
||||
Avatar: avatar,
|
||||
Link: from.HTMLURL,
|
||||
IsSCMPrivate: from.Private,
|
||||
IsSCMPrivate: from.Private || from.Owner.Visibility != gitea.VisibleTypePublic,
|
||||
Clone: from.CloneURL,
|
||||
Branch: from.DefaultBranch,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue