lib/hydra/access_controls_enforcement.rb in hydra-access-controls-10.7.0 vs lib/hydra/access_controls_enforcement.rb in hydra-access-controls-11.0.0.rc1

- old
+ new

@@ -1,8 +1,14 @@ module Hydra::AccessControlsEnforcement extend ActiveSupport::Concern include Blacklight::AccessControls::Enforcement + included do + Deprecation.warn(self, 'Hydra::AccessControlsEnforcement is deprecated ' \ + 'and will be removed in version 11. Use ' \ + 'Hydra::AccessControls::SearchBuilder instead.') + end + protected def under_embargo? load_permissions_from_solr embargo_key = Hydra.config.permissions.embargo.release_date