Skip to content

Commit

Permalink
[#2939] User dictize sysadmin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 9, 2012
1 parent 47f1764 commit fcf49ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/dictization/model_dictize.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def user_dictize(user, context):

requester = context['user']

if not (ckan.authz.Authorizer().is_sysadmin(unicode(requester)) or
if not (ckan.new_authz.is_sysadmin(requester) or
requester == user.name or
context.get('keep_sensitive_data', False)):
# If not sysadmin or the same user, strip sensible info
Expand Down

0 comments on commit fcf49ff

Please sign in to comment.