lib/hydra/access_controls_enforcement.rb in hydra-access-controls-9.0.0.rc3 vs lib/hydra/access_controls_enforcement.rb in hydra-access-controls-9.0.0
- old
+ new
@@ -8,11 +8,11 @@
# this class, taking one parameter (permission_types)
# Can be changed in local apps or by plugins, eg:
# CatalogController.include ModuleDefiningNewMethod
# CatalogController.solr_access_filters_logic += [:new_method]
# CatalogController.solr_access_filters_logic.delete(:we_dont_want)
- self.solr_access_filters_logic = [:apply_group_permissions, :apply_user_permissions, :apply_superuser_permissions ]
+ self.solr_access_filters_logic = [:apply_group_permissions, :apply_user_permissions]
end
protected
@@ -114,12 +114,7 @@
permission_types.each do |type|
user_access_filters << escape_filter(Hydra.config.permissions[type.to_sym].individual, user.user_key)
end
end
user_access_filters
- end
-
- # override to apply super user permissions
- def apply_superuser_permissions(permission_types, ability = current_ability)
- []
end
end