app/controllers/concerns/hyrax/controller.rb
# Redirect all deposit and edit requests with warning message when in read only mode
Redirect all deposit and edit requests with warning message when in read only mode
Redirect all deposit and edit requests with warning message when in read only mode
def check_read_only
    return unless Flipflop.read_only?
    return if self.class.to_s == Hyrax::Admin::StrategiesController.to_s
    redirect_to root_path, flash: { error: t('hyrax.read_only') }
  end
def check_read_only return unless Flipflop . read_only? return if self . class . to_s == Hyrax :: Admin :: StrategiesController . to_s redirect_to root_path , flash : { error : t ( 'hyrax.read_only' ) } end
Redirect all deposit and edit requests with warning message when in read only mode
Redirect all deposit and edit requests with warning message when in read only mode
# Allows feature to be turned off