s/repository/repo_name
This commit is contained in:
parent
a0e5de8f29
commit
0f6c77caab
1 changed files with 4 additions and 4 deletions
|
@ -282,9 +282,9 @@ def get_squashed_tag(namespace, repository, tag):
|
|||
@anon_protect
|
||||
@verbs.route('/torrent{0}'.format(BLOB_DIGEST_ROUTE), methods=['GET'])
|
||||
@process_auth
|
||||
def get_tag_torrent(namespace, repository, digest):
|
||||
permission = ReadRepositoryPermission(namespace, repository)
|
||||
public_repo = model.repository.repository_is_public(namespace, repository)
|
||||
def get_tag_torrent(namespace, repo_name, digest):
|
||||
permission = ReadRepositoryPermission(namespace, repo_name)
|
||||
public_repo = model.repository.repository_is_public(namespace, repo_name)
|
||||
if not permission.can() and not public_repo:
|
||||
abort(403)
|
||||
|
||||
|
@ -293,7 +293,7 @@ def get_tag_torrent(namespace, repository, digest):
|
|||
abort(403)
|
||||
|
||||
try:
|
||||
blob = model.blob.get_repo_blob_by_digest(namespace, repository, digest)
|
||||
blob = model.blob.get_repo_blob_by_digest(namespace, repo_name, digest)
|
||||
except model.BlobDoesNotExist:
|
||||
abort(404)
|
||||
|
||||
|
|
Reference in a new issue