- fix upload for non admin users

- fix https test
- give permission denied warning if upload is not working
This commit is contained in:
j 2012-09-08 17:03:59 +02:00
commit e5107d8610
3 changed files with 15 additions and 5 deletions

View file

@ -263,6 +263,8 @@ def firefogg_upload(request):
'result': 1
}
return render_to_json_response(response)
else:
response = json_response(status=404, text='permission denied')
response = json_response(status=400, text='this request requires POST')
return render_to_json_response(response)