Skip to content

Commit

Permalink
[#1393] user_dictize: return apikey correctly
Browse files Browse the repository at this point in the history
Was returning email instead of apikey. Fixes #1393
  • Loading branch information
Sean Hammond committed Dec 13, 2013
1 parent 86d90ee commit c341f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/dictization/model_dictize.py
Expand Up @@ -525,7 +525,7 @@ def user_dictize(user, context):
result_dict['email'] = email

if context.get('keep_apikey', False):
result_dict['apikey'] = email
result_dict['apikey'] = apikey

if requester == user.name:
result_dict['apikey'] = apikey
Expand Down

0 comments on commit c341f68

Please sign in to comment.