Module: Blacklight::AccessControls::PermissionsQuery

Extended by:
ActiveSupport::Concern
Defined in:
lib/blacklight/access_controls/permissions_query.rb

Instance Method Summary collapse

Instance Method Details

#permissions_doc(pid) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/blacklight/access_controls/permissions_query.rb', line 7

def permissions_doc(pid)
  doc = cache.get(pid)
  unless doc
    doc = get_permissions_solr_response_for_doc_id(pid)
    cache.put(pid, doc)
  end
  doc
end

#permissions_document_classObject

This is only valid for, and should only be used for blacklight 6



17
18
19
# File 'lib/blacklight/access_controls/permissions_query.rb', line 17

def permissions_document_class
  blacklight_config.document_model
end