Skip to content

Commit

Permalink
Remove user when using API callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi authored and amercader committed Dec 16, 2015
1 parent 72b327c commit a236134
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/controllers/api.py
Expand Up @@ -183,6 +183,10 @@ def action(self, logic_function, ver=None):
# if callback is specified we do not want to send that to the search
if 'callback' in request_data:
del request_data['callback']
c.user = None
c.userobj = None
context['user'] = None
context['auth_user_obj'] = None
try:
result = function(context, request_data)
return_dict['success'] = True
Expand Down

0 comments on commit a236134

Please sign in to comment.