This commit is contained in:
Ross
2021-05-01 13:06:04 +01:00
parent a14c3ce0ee
commit 7b441d1f01
+2 -2
View File
@@ -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)