Sha256: ccf9de3f15d2e57627850ced1dbe432ac3a02048b9845c386b77e85e12a60ee0

Contents?: true

Size: 425 Bytes

Versions: 36

Compression:

Stored size: 425 Bytes

Contents

module Hyrax
  module Ability
    module SolrDocumentAbility
      def solr_document_abilities
        if admin?
          can [:manage], ::SolrDocument
        else
          can [:edit, :update, :destroy], ::SolrDocument do |solr_doc|
            test_edit(solr_doc.id)
          end
          can :read, ::SolrDocument do |solr_doc|
            test_read(solr_doc.id)
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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