Skip to content

Commit

Permalink
404 for unauthorized viewers of submission json
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-o committed Feb 18, 2019
1 parent 37d4b3e commit 1c2e081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tin/apps/submissions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ def show_json_view(request, submission_id):
data["grader_errors"] = submission.grader_errors
return http.HttpResponse(json.dumps(data), content_type = "text/json")

return http.HttpResponse(json.dumps({"error": "Submission not found"}))
return http.Http404

0 comments on commit 1c2e081

Please sign in to comment.