Skip to content

Commit

Permalink
fixing this issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raalesir committed Oct 16, 2018
1 parent d165d58 commit e245533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readthedocs/core/views/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def serve_docs(
if not version_slug:
version_slug = project.get_default_version()
try:
version = project.versions.public(request.user).get(slug=version_slug)
#version = project.versions.public(request.user).get(slug=version_slug)
version = project.versions.get(slug=version_slug)
except Version.DoesNotExist:
# Properly raise a 404 if the version doesn't exist & a 401 if it does
if project.versions.filter(slug=version_slug).exists():
Expand Down

0 comments on commit e245533

Please sign in to comment.