lib/hydra/access_controls_enforcement.rb in hydra-access-controls-6.4.0 vs lib/hydra/access_controls_enforcement.rb in hydra-access-controls-6.4.1
- old
+ new
@@ -20,13 +20,9 @@
def gated_discovery_filters
# Grant access to public content
permission_types = discovery_permissions
user_access_filters = []
- permission_types.each do |type|
- user_access_filters << ActiveFedora::SolrService.solr_name("#{type}_access_group", Hydra::Datastream::RightsMetadata.indexer) + ":public"
- end
-
# Grant access based on user id & role
solr_access_filters_logic.each do |method_name|
user_access_filters += send(method_name, permission_types)
end
user_access_filters