Sha256: 7835a5337ff4908be1c4526f76885d7b7f2f7488c6296f422f9fdc60bfd43e9c

Contents?: true

Size: 439 Bytes

Versions: 48

Compression:

Stored size: 439 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::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

48 entries across 48 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.9.5 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.9.4 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.9.3 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.9.2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.9.1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.9.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.8.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.7.2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.7.1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.7.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.6.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.0.0.pre.rc1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.0.0.pre.beta3 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.5.1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.5.0 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.0.0.pre.beta2 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.4.1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-3.0.0.pre.beta1 app/search_builders/hyrax/my/search_builder_behavior.rb
hyrax-2.4.0 app/search_builders/hyrax/my/search_builder_behavior.rb