Sha256: 8d693daf199d3adeb5a628da6bd7b39fb847a4962878de8e9ddc97c53a62dba9
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
module Hydra module AccessControls class SearchBuilder < Blacklight::AccessControls::SearchBuilder # Find the name of the solr field for this type of permission. # e.g. "read_access_group_ssim" or "discover_access_person_ssim". # Used by blacklight-access_controls. def solr_field_for(permission_type, permission_category) permissions = Hydra.config.permissions[permission_type.to_sym] permission_category == 'group' ? permissions.group : permissions.individual end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-access-controls-11.0.0.rc1 | app/search_builders/hydra/access_controls/search_builder.rb |