return 404 not 403 for private edits, fixes #3024
This commit is contained in:
parent
4fae41c463
commit
6d867b1a7d
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ def getEdit(request, data):
|
||||||
if edit.accessible(request.user):
|
if edit.accessible(request.user):
|
||||||
response['data'] = edit.json(keys=data.get('keys'), user=request.user)
|
response['data'] = edit.json(keys=data.get('keys'), user=request.user)
|
||||||
else:
|
else:
|
||||||
response = json_response(status=403, text='not allowed')
|
response = json_response(status=404, text='not found')
|
||||||
else:
|
else:
|
||||||
response = json_response(status=404, text='not found')
|
response = json_response(status=404, text='not found')
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
|
|
Loading…
Reference in a new issue