This commit is contained in:
Ross
2021-07-26 22:52:24 +01:00
parent ce71e0d427
commit 08eb27bc0b
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -631,7 +631,7 @@ def loadJsonAnswer(answer):
@login_required
@user_is_author_or_long_checker
#@user_is_author_or_long_checker
def mark_answer(request, pk, sk, tk):
exam = get_object_or_404(Exam, pk=pk)
@@ -700,7 +700,7 @@ def mark_answer(request, pk, sk, tk):
# @user_passes_test(user_is_admin, login_url="/accounts/login")
@login_required
@user_is_author_or_long_checker
#@user_is_author_or_long_checker
def mark(request, pk, sk):
exam = get_object_or_404(Exam, pk=pk)