.
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user