]> git.parisson.com Git - teleforma.git/commitdiff
fix professor period
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 18 Aug 2014 13:24:30 +0000 (15:24 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 18 Aug 2014 13:24:30 +0000 (15:24 +0200)
teleforma/views/core.py

index eee33a7d223300b066af3b939535de7515f2adce..786ef7778ae7f419b5a1c9f1154d914c3787f147 100644 (file)
@@ -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