Show unpublished conference schedule to staff.

This is an addendum to #123 to allow the `schedule_conference` view to
show unpublished conference schedules to staff members.
This commit is contained in:
Martey Dodoo 2016-03-15 12:08:58 -04:00
parent d10d313f64
commit 251f9ea280

View file

@ -34,6 +34,9 @@ def fetch_schedule(slug):
def schedule_conference(request): def schedule_conference(request):
if request.user.is_staff:
schedules = Schedule.objects.filter(hidden=False)
else:
schedules = Schedule.objects.filter(published=True, hidden=False) schedules = Schedule.objects.filter(published=True, hidden=False)
sections = [] sections = []