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