Show starred public repositories in the starred repos list
We forgot to check if the repository was public in the filter Fixes https://jira.coreos.com/browse/QUAY-857
This commit is contained in:
parent
9d30a0a216
commit
8ee98c1c48
4 changed files with 37 additions and 6 deletions
|
@ -60,7 +60,8 @@ class PreOCIModel(RepositoryDataInterface):
|
|||
if starred:
|
||||
# Return the full list of repos starred by the current user that are still visible to them.
|
||||
def can_view_repo(repo):
|
||||
return ReadRepositoryPermission(repo.namespace_user.username, repo.name).can()
|
||||
can_view = ReadRepositoryPermission(repo.namespace_user.username, repo.name).can()
|
||||
return can_view or model.repository.is_repository_public(repo)
|
||||
|
||||
unfiltered_repos = model.repository.get_user_starred_repositories(user,
|
||||
kind_filter=repo_kind)
|
||||
|
|
Reference in a new issue