torrent: don't get user when public repo

This commit is contained in:
Jimmy Zelinskie 2016-01-07 14:15:04 -05:00
parent bc01fed9d4
commit a089b3c383

View file

@ -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: