Commit 1453a861 by cahrens

Minor code cleanup.

parent 089a1db6
......@@ -108,7 +108,7 @@ def subsection_handler(request, tag=None, package_id=None, branch=None, version_
subsection_units = item.get_children()
for unit in subsection_units:
state = compute_publish_state(unit)
if state == PublishState.public or state == PublishState.draft:
if state in (PublishState.public, PublishState.draft):
can_view_live = True
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment