Skip to content

Commit

Permalink
[#356] Remove unused user variable in user_create's auth function
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbaptista committed Jul 30, 2013
1 parent 9595c24 commit f331d62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckan/logic/auth/create.py
Expand Up @@ -105,14 +105,12 @@ def rating_create(context, data_dict):


def user_create(context, data_dict=None):
user = context['user']

create_user = new_authz.check_config_permission(
'anon_create_user')

if not create_user:
return {'success': False, 'msg': _('Not authorized to '
'create users').format(user=user)}
'create users')}
else:
return {'success': True}

Expand Down

0 comments on commit f331d62

Please sign in to comment.