diff --git a/data/model/repository.py b/data/model/repository.py index 910ae358a..6709b3f09 100644 --- a/data/model/repository.py +++ b/data/model/repository.py @@ -393,7 +393,7 @@ def lookup_repository(repo_id): def is_repository_public(repository): - return repository.visibility == _basequery.get_public_repo_visibility() + return repository.visibility_id == _basequery.get_public_repo_visibility().id def repository_is_public(namespace_name, repository_name):