return json

This commit is contained in:
j 2011-09-29 17:27:56 +00:00
parent 31c1ee7fba
commit 2c6308cf87

View file

@ -429,7 +429,7 @@ Positions
'''
if request.user.is_anonymous() or request.user.get_profile().get_level() != 'admin':
response = json_response(status=403, text='permission denied')
return
return response
response = json_response(status=200, text='ok')
data = json.loads(request.POST['data'])