Sha256: ab67118a361a0161d9e5f1adf9c52aeb8a44ac31ece06019ea0c094affb6dc06

Contents?: true

Size: 469 Bytes

Versions: 26

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true
# Behavior for the my controller search builder to allow the my controller to only get access to
# items I have edit access to.
#
# Separating as a behavior allows for easier overriding of the gem behavior.
module Hyrax::My::SearchBuilderBehavior
  extend ActiveSupport::Concern

  # show only files with edit permissions in lib/hydra/access_controls_enforcement.rb apply_gated_discovery
  def discovery_permissions
    ["edit"]
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hyrax-5.0.2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-5.0.1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-5.0.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-5.0.0.rc3 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-5.0.0.rc2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-5.0.0.rc1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.6.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-4.0.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-4.0.0.rc3 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-4.0.0.rc2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-4.0.0.rc1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.5.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-4.0.0.beta2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.4.2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-4.0.0.beta1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.4.1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.4.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.3.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.2.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.1.0 app/search_builders/hyrax/my/search_builder_behavior.rb