From 01dcfb72e25adec76790f6194e11392eee55eba4 Mon Sep 17 00:00:00 2001 From: Thorge Petersen <petersen@rz.uni-kiel.de> Date: Mon, 26 Jun 2023 09:55:34 +0200 Subject: [PATCH] Removed redundant validation for cases where license attribution is provided but not required by the license type --- ckanext/odsh/validation.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ckanext/odsh/validation.py b/ckanext/odsh/validation.py index bc1f0f2f..32cd39e3 100644 --- a/ckanext/odsh/validation.py +++ b/ckanext/odsh/validation.py @@ -184,10 +184,6 @@ def validate_licenseAttributionByText(key, data, errors, context): raise toolkit.Invalid( 'licenseAttributionByText: empty not allowed') - if not isByLicense and hasAttribution: - raise toolkit.Invalid( - 'licenseAttributionByText: text not allowed for this license') - def known_spatial_uri(key, data, errors, context): if data.get(('__extras',)) and 'spatial_uri_temp' in data.get(('__extras',)): -- GitLab