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:
parent
d10d313f64
commit
251f9ea280
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ def fetch_schedule(slug):
|
|||
|
||||
def schedule_conference(request):
|
||||
|
||||
schedules = Schedule.objects.filter(published=True, hidden=False)
|
||||
if request.user.is_staff:
|
||||
schedules = Schedule.objects.filter(hidden=False)
|
||||
else:
|
||||
schedules = Schedule.objects.filter(published=True, hidden=False)
|
||||
|
||||
sections = []
|
||||
for schedule in schedules:
|
||||
|
|
Loading…
Reference in a new issue