Skip to content
Snippets Groups Projects
Commit 51e3366f authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

fixed errors in validate_extras

parent 484de87e
Branches
Tags
1 merge request!28fixed errors in validate_extras
......@@ -64,13 +64,14 @@ def validate_extra_groups(data, requireAtLeastOne, errors):
def validate_extras(key, data, errors, context):
extra_errors = {}
isStaNord = ('id',) in data and data[('id',)][:7] == 'StaNord'
harvesting = ('ignore_auth' in context) and (context['ignore_auth'] == True)
owner_org = data[('owner_org',)]
lenient_with = config.get('ckanext.odsh.lenient_with','')
is_optional_temporal_start = toolkit.asbool(
config.get('ckanext.odsh.is_optional_temporal_start', False)
) ( harvesting and (owner_org in lenient_with) )
) or ( harvesting and (owner_org in lenient_with) )
require_at_least_one_category = toolkit.asbool(
config.get('ckanext.odsh.require_at_least_one_category', False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment