Full add public repository support.
This commit is contained in:
parent
d50a5d83f8
commit
b718dbc6e3
5 changed files with 39 additions and 32 deletions
|
@ -157,7 +157,7 @@ def get_repository_images(namespace, repository):
|
|||
|
||||
# TODO invalidate token?
|
||||
|
||||
if permission.can():
|
||||
if permission.can() or model.repository_is_public(namespace, repository):
|
||||
all_images = []
|
||||
for image in model.get_repository_images(namespace, repository):
|
||||
new_image_view = {
|
||||
|
|
Reference in a new issue