Fix repo listing (#2855)

closes #2854
This commit is contained in:
qwerty287
2023-11-22 09:42:20 +01:00
committed by GitHub
parent 7b752808ef
commit c9e587753e

View File

@@ -14,5 +14,5 @@ type OwnersAllowlist struct {
}
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]
}