diff --git a/app/models/doi.rb b/app/models/doi.rb index e48206770..c23628c87 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -1838,7 +1838,7 @@ def event=(value) end def check_url - return nil if doi.is_registered_or_findable? + return nil if is_registered_or_findable? unless match_url_with_domains(url: url, domains: client.domains) errors.add(:url, "URL is not allowed by repository domain settings.")