Skip to content

Commit

Permalink
[#2035] Split all whitespace when parsing roles_that_cascade_to_sub_g…
Browse files Browse the repository at this point in the history
…roups

Use split() rather than split(' ')
  • Loading branch information
amercader committed Nov 14, 2014
1 parent 370c811 commit 99e5ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/new_authz.py
Expand Up @@ -402,7 +402,7 @@ def check_config_permission(permission):

if key == 'roles_that_cascade_to_sub_groups':
# This permission is set as a list of strings (space separated)
value = value.split(' ') if value else []
value = value.split() if value else []
else:
value = asbool(value)

Expand Down

0 comments on commit 99e5ee0

Please sign in to comment.