Skip to content

Commit

Permalink
[#954] Allow data_dict=None
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 31, 2013
1 parent aea845a commit a829e16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/logic/auth/create.py
Expand Up @@ -20,6 +20,7 @@ def package_create(context, data_dict=None):
return {'success': False, 'msg': _('User %s not authorized to edit these groups') % user}

# If an organization is given are we able to add a dataset to it?
data_dict = data_dict or {}
org_id = data_dict.get('organization_id')
if org_id and not new_authz.has_user_permission_for_group_or_org(
org_id, user, 'create_dataset'):
Expand Down

0 comments on commit a829e16

Please sign in to comment.