From 7b441d1f014a846737f3b691ffb8090ce1837d5c Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 1 May 2021 13:06:04 +0100 Subject: [PATCH] . --- generic/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/views.py b/generic/views.py index 60eaca93..a2cb4da1 100644 --- a/generic/views.py +++ b/generic/views.py @@ -114,13 +114,13 @@ def generic_exam_json_edit(request): return JsonResponse(data, status=200) # Only checkers can do the following - if question_type == "rapids" and not request.user.groups.filter(name='rapid_checker').exists(): + if question_type == "rapid" and not request.user.groups.filter(name='rapid_checker').exists(): data = {"status": "error, permission denied"} return JsonResponse(data, status=400) if question_type == "anatomy" and not request.user.groups.filter(name='anatomy_checker').exists(): data = {"status": "error, permission denied"} return JsonResponse(data, status=400) - if question_type == "longs" and not request.user.groups.filter(name='long_checker').exists(): + if question_type == "long" and not request.user.groups.filter(name='long_checker').exists(): data = {"status": "error, permission denied"} return JsonResponse(data, status=400)