From: Guillaume Pellerin Date: Mon, 18 Aug 2014 13:24:30 +0000 (+0200) Subject: fix professor period X-Git-Tag: 1.1~309 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=df529de10b3cd584e2e9bb802272fd3971a485a7;p=teleforma.git fix professor period --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index eee33a7d..786ef777 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -173,7 +173,7 @@ def get_periods(user): periods = Period.objects.all() quotas = user.quotas.all() - if quotas and not (user.is_superuser or user.is_staff): + if quotas and not (user.is_superuser or user.is_staff) and not professor: periods = [quota.period for quota in quotas] return periods