]> git.parisson.com Git - teleforma.git/commitdiff
fix annals for corrector
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 27 Jul 2014 16:24:11 +0000 (18:24 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 27 Jul 2014 16:24:11 +0000 (18:24 +0200)
teleforma/views/crfpa.py

index 3db4f31875cec6c66f931e3bb6f020eec979143e..a72d10de02a5ef6ab14490404bddd623d1bd8b36 100644 (file)
@@ -290,7 +290,7 @@ class AnnalsView(ListView):
         annals = {}
         courses = [c['course'] for c in self.all_courses]
 
-        if self.user.is_staff or self.user.is_superuser or self.user.professor.all():
+        if self.user.is_staff or self.user.is_superuser or self.user.professor.all() or self.user.quotas.all():
             docs = Document.objects.filter(is_annal=True).order_by('-annal_year')
         elif students:
             self.student = students[0]