reverted change in default groups validation

This commit is contained in:
Petar Efnushev 2016-05-20 20:15:54 +02:00
parent c154365371
commit c16ecea7f0
1 changed files with 2 additions and 2 deletions

View File

@ -128,10 +128,10 @@ class CKANHarvester(HarvesterBase):
# Check if default groups exist
context = {'model': model, 'user': c.user}
for group_ in config_obj['default_groups']:
for group_name in config_obj['default_groups']:
try:
group = get_action('group_show')(
context, {'id': group_['id']})
context, {'id': group_name})
except NotFound, e:
raise ValueError('Default group not found')