1
0
Fork 0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-03-31 16:39:45 +00:00

Fix repo listing ()

closes 
This commit is contained in:
qwerty287 2023-11-22 09:42:20 +01:00 committed by GitHub
parent 7b752808ef
commit c9e587753e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,5 +14,5 @@ type OwnersAllowlist struct {
} }
func (o *OwnersAllowlist) IsAllowed(repo *model.Repo) bool { func (o *OwnersAllowlist) IsAllowed(repo *model.Repo) bool {
return len(o.owners) > 0 && o.owners[repo.Owner] return len(o.owners) < 1 || o.owners[repo.Owner]
} }