return 404 not 403 for private edits, fixes #3024

This commit is contained in:
j 2017-05-29 12:14:50 +02:00
parent 4fae41c463
commit 6d867b1a7d

View file

@ -236,7 +236,7 @@ def getEdit(request, data):
if edit.accessible(request.user):
response['data'] = edit.json(keys=data.get('keys'), user=request.user)
else:
response = json_response(status=403, text='not allowed')
response = json_response(status=404, text='not found')
else:
response = json_response(status=404, text='not found')
return render_to_json_response(response)