fix permission error
This commit is contained in:
parent
19b8bcfc83
commit
d1ed4ce79d
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def addDocument(request):
|
||||||
document = models.Document.get(id)
|
document = models.Document.get(id)
|
||||||
document.add(item)
|
document.add(item)
|
||||||
else:
|
else:
|
||||||
response = json_response(status=403, file='permission denied')
|
response = json_response(status=403, text='permission denied')
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
actions.register(addDocument, cache=False)
|
actions.register(addDocument, cache=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue