Sha256: 1dc11d2c5ac8a05879ae8554812defdfbb899e65274262835c2a1c24bdaf52de

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 Bytes

Contents

# 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::MySearchBuilderBehavior
  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

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.1.0 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.5 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.4 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.3 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.2 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.1 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.0.rc2 app/search_builders/hyrax/my_search_builder_behavior.rb
hyrax-1.0.0.rc1 app/search_builders/hyrax/my_search_builder_behavior.rb
test_hyrax-0.0.1.alpha app/search_builders/hyrax/my_search_builder_behavior.rb