diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index 1b393270c..674dc4443 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -13,7 +13,7 @@ class DoisController < ApplicationController def index authorize! :read, Doi - if Rails.env.production? && !Flipper.enabled?(:elasticsearch) + if Rails.env.production? && !current_user.try(:is_admin_or_staff?) # don't use elasticsearch # support nested routes