Fix bug when 'edbob.permissions' setting is empty.
Which, it ought to be forever, soon...
This commit is contained in:
parent
ecc49e4939
commit
8ec6a18cdc
|
@ -122,7 +122,7 @@ def make_pyramid_config(settings):
|
|||
|
||||
# TODO: This can finally be removed once all CRUD/index views have been
|
||||
# converted to use the new master view etc.
|
||||
for label, perms in settings.get('edbob.permissions'):
|
||||
for label, perms in settings.get('edbob.permissions', []):
|
||||
groupkey = label.lower().replace(' ', '_')
|
||||
config.add_tailbone_permission_group(groupkey, label)
|
||||
for key, label in perms:
|
||||
|
|
Loading…
Reference in a new issue