Skip to content

Commit

Permalink
Fix error when building offline site
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Jun 14, 2019
1 parent f60a70c commit 72ec7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indico/modules/events/static/offline.py
Expand Up @@ -192,7 +192,7 @@ def _copy_all_material(self):
for sc in contrib.subcontributions:
self._add_material(sc, "%s-subcontribution" % sc.friendly_id)
for session_ in self.event.sessions:
if not session.can_access(None):
if not session_.can_access(None):
continue
self._add_material(session_, "%s-session" % session_.friendly_id)

Expand Down

0 comments on commit 72ec7c6

Please sign in to comment.