From 804f2b1182b8b406f6cb8c515a3f303f4d486293 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 5 Jul 2018 11:37:05 +0200 Subject: [PATCH] fix : students can not filter scripts anymore --- teleforma/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/exam/views.py b/teleforma/exam/views.py index 15ab2af7..1380d5db 100755 --- a/teleforma/exam/views.py +++ b/teleforma/exam/views.py @@ -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 -- 2.39.5