From 3c4382ed58d5f5f2ef1dc35138efac858aaf1b8b Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 23 Oct 2020 15:19:53 +0200 Subject: [PATCH] fix syntax #666 --- app/models/doi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.")