torrent: don't get user when public repo
This commit is contained in:
parent
bc01fed9d4
commit
a089b3c383
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ def get_tag_torrent(namespace, repo_name, digest):
|
|||
abort(403)
|
||||
|
||||
user = get_authenticated_user()
|
||||
if user is None:
|
||||
if user is None and not public_repo:
|
||||
abort(403)
|
||||
|
||||
try:
|
||||
|
|
Reference in a new issue