Skip to content

Commit

Permalink
[#2939] Fix misnamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 15, 2012
1 parent ce3bade commit 9a36d04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/auth/create.py
Expand Up @@ -6,7 +6,7 @@

def package_create(context, data_dict=None):
user = context['user']
if not new_authz.auth_is_reqistered_user():
if not new_authz.auth_is_registered_user():
check1 = new_authz.check_config_permission('anon_create_dataset')
else:
check1 = new_authz.check_config_permission('create_dataset_if_not_in_organization') \
Expand All @@ -24,7 +24,7 @@ def package_create(context, data_dict=None):

def file_upload(context, data_dict=None):
user = context['user']
if not new_authz.auth_is_reqistered_user():
if not new_authz.auth_is_registered_user():
return {'success': False, 'msg': _('User %s not authorized to create packages') % user}
return {'success': True}

Expand Down
2 changes: 1 addition & 1 deletion ckan/new_authz.py
Expand Up @@ -251,7 +251,7 @@ def check_config_permission(permission):



def auth_is_reqistered_user():
def auth_is_registered_user():
''' Do we have a logged in user '''
try:
context_user = c.user
Expand Down

0 comments on commit 9a36d04

Please sign in to comment.