Fix SCM visibility if user visibility is private (#1217)

Closes https://codeberg.org/Codeberg-CI/feedback/issues/74
This commit is contained in:
qwerty287 2022-09-27 21:24:33 +02:00 committed by GitHub
parent c2ba272871
commit 7838f84b69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}