Skip to content

Commit

Permalink
Make iCal export unrestricted when HIDE_SCHEDULE is false
Browse files Browse the repository at this point in the history
This lets admins set the schedule to public, so that users (and, more importantly, apps) can stream the link. To specify certain locations, use the format `ical?locations=["216358381","227492696","246781333"]`
  • Loading branch information
kitsuta committed Jun 27, 2018
1 parent bd573d4 commit d125902
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uber/site_sections/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def ical(self, session, **params):

return icalendar

if not c.HIDE_SCHEDULE:
ical.restricted = False

@csv_file
def csv(self, out, session):
out.writerow(['Session Title', 'Date', 'Time Start', 'Time End', 'Room/Location',
Expand Down

0 comments on commit d125902

Please sign in to comment.