Skip to content

Commit

Permalink
handle dois without client, e.g. from crossref
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 24, 2020
1 parent b63e7be commit d79f383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ def event=(value)
end

def check_url
unless url.blank? || match_url_with_domains(url: url, domains: client.domains)
unless url.blank? || client.blank? || match_url_with_domains(url: url, domains: client.domains)
errors.add(:url, "URL is not allowed by repository domain settings.")
end
end
Expand Down

0 comments on commit d79f383

Please sign in to comment.