Skip to content

Commit

Permalink
[#2939] Fix logic error in create package auth
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 11, 2012
1 parent 226d7fc commit 5057ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/auth/create.py
Expand Up @@ -15,7 +15,7 @@ def package_create(context, data_dict=None):
context_user = None
if not context_user:

check1 = config.get('ckan.auth.anon_create_dataset', False)
check1 = asbool(config.get('ckan.auth.anon_create_dataset', False))
else:
check1 = asbool(config.get('ckan.auth.create_dataset_if_not_in_organization', False)) \
or new_authz.has_user_permission_for_some_org(user, 'create_dataset')
Expand Down

0 comments on commit 5057ad9

Please sign in to comment.