Skip to content

Commit

Permalink
[#1038] Fix reading config.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Sep 17, 2013
1 parent e0bc490 commit fafd9f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ckan/config/deployment.ini_tmpl
Expand Up @@ -66,6 +66,7 @@ ckan.auth.user_create_organizations = true
ckan.auth.user_delete_groups = true
ckan.auth.user_delete_organizations = true
ckan.auth.create_user_via_api = false
ckan.auth.roles_that_cascade_to_sub_groups = admin

## Search Settings

Expand Down
2 changes: 1 addition & 1 deletion ckan/new_authz.py
Expand Up @@ -387,7 +387,7 @@ def check_config_permission(permission):
CONFIG_PERMISSIONS[perm] = config.get(key, default)
if isinstance(default, bool):
CONFIG_PERMISSIONS[perm] = asbool(CONFIG_PERMISSIONS[perm])
elif isinstance(default, list):
elif isinstance(default, list) and key in config:
CONFIG_PERMISSIONS[perm] = \
CONFIG_PERMISSIONS[perm].split(' ') \
if CONFIG_PERMISSIONS[perm] else []
Expand Down

0 comments on commit fafd9f9

Please sign in to comment.