]> git.parisson.com Git - teleforma.git/commitdiff
fix : students can not filter scripts anymore
authorYoan Le Clanche <yoan@ellington.pilotsystems.net>
Thu, 5 Jul 2018 09:37:05 +0000 (11:37 +0200)
committerYoan Le Clanche <yoan@ellington.pilotsystems.net>
Thu, 5 Jul 2018 09:37:05 +0000 (11:37 +0200)
teleforma/exam/views.py

index 15ab2af7d716cb3f370a62766c0ad44f2ca1c107..1380d5dbb1142ce81fe405ab984ba45aa6988abe 100755 (executable)
@@ -38,7 +38,7 @@ class ScriptsListMixinView(ScriptMixinView):
         professor = user.professor.all()
         if professor:
             return PROFESSOR
-        if user.corrector_scripts:
+        if user.quotas.all():
             return CORRECTOR
         return STUDENT