Skip to content

Commit

Permalink
switch back to new_authz
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Sep 23, 2015
1 parent c1e0b47 commit 6e959b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/update.py
Expand Up @@ -22,7 +22,7 @@
import ckan.lib.datapreview

from ckan.common import _, request
from ckan import authz
from ckan import new_authz

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -693,7 +693,7 @@ def user_update(context, data_dict):
raise ValidationError(errors)

# allow importing password_hash from another ckan
if authz.is_sysadmin(context['user']) and 'password_hash' in data:
if new_authz.is_sysadmin(context['user']) and 'password_hash' in data:
data['_password'] = data.pop('password_hash')

user = model_save.user_dict_save(data, context)
Expand Down

0 comments on commit 6e959b0

Please sign in to comment.