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