Skip to content

Commit

Permalink
don't look up ethz dois in handle system
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 25, 2018
1 parent 8a6c8bb commit e569bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def random
def get_url
authorize! :get_url, @doi

if @doi.aasm_state == "draft"
if !@doi.is_registered_or_findable? || %w(europ ethz).include?(@doi.provider_id) || %w(Crossref).include?(@doi.agency)
url = @doi.url
head :no_content and return unless url.present?
else
Expand Down

0 comments on commit e569bdb

Please sign in to comment.