Skip to content

Commit

Permalink
use feature flag to enable elasticsearch for dois in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 4, 2018
1 parent c5f59de commit 8ccc384
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 @@ -9,7 +9,7 @@ class DoisController < ApplicationController
def index
authorize! :read, Doi

if Rails.env.production? && !current_user.try(:is_admin_or_staff?)
if Rails.env.production? && !Flipper.enabled?(:elasticsearch)
# don't use elasticsearch

# support nested routes
Expand Down

0 comments on commit 8ccc384

Please sign in to comment.