Skip to content

Commit

Permalink
[#792] Fix auth function
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Apr 23, 2013
1 parent 2eb8cd3 commit 24f686d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/logic/auth/create.py
Expand Up @@ -10,6 +10,7 @@ def package_create(context, data_dict=None):
check1 = new_authz.check_config_permission('anon_create_dataset')
else:
check1 = new_authz.check_config_permission('create_dataset_if_not_in_organization') \
or new_authz.check_config_permission('create_unowned_dataset') \
or new_authz.has_user_permission_for_some_org(user, 'create_dataset')

if not check1:
Expand Down

0 comments on commit 24f686d

Please sign in to comment.