Fix bug when 'edbob.permissions' setting is empty.

Which, it ought to be forever, soon...
This commit is contained in:
Lance Edgar 2015-11-15 20:51:09 -06:00
parent ecc49e4939
commit 8ec6a18cdc

View file

@ -122,7 +122,7 @@ def make_pyramid_config(settings):
# TODO: This can finally be removed once all CRUD/index views have been # TODO: This can finally be removed once all CRUD/index views have been
# converted to use the new master view etc. # 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(' ', '_') groupkey = label.lower().replace(' ', '_')
config.add_tailbone_permission_group(groupkey, label) config.add_tailbone_permission_group(groupkey, label)
for key, label in perms: for key, label in perms: