Skip to content

7.0.0

Compare
Choose a tag to compare
@jcoyne jcoyne released this 31 Mar 16:19
  • Abilities no longer confers the ability to create any kind of object to registered users. If you want to retain that behavior add this to app/models/ability.rb
    def create_permissions
       can :create, :all if user_groups.include? 'registered'
    end
  • Hydra::Controller::DownloadBehavior raises a CanCan::AccessDenied instead of Hydra::AccessDenied
  • to_solr is no longer passing a reference to one big solr document, so if you are overriding to_solr and you have a line in that method that looks like this:
  super(solr_doc)

change it to:

  solr_doc = super(solr_doc)
  • RoleMapper now has one config file -- role_map.yml -- with sections for each Rails environment, instead of separate files (role_map_test.yml, role_map_development.yml, etc.)