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)