Releases: projectblacklight/blacklight-access_controls
Releases · projectblacklight/blacklight-access_controls
Version 0.7.0
What's new:
- Support for Blacklight 7.
- We've moved the logic for constructing filtered searches into the
SearchBuilder
. This requires that we pass an instance of theCanCan::Ability
class to the search builder. This is done by the controller mixin: https://github.com/projectblacklight/blacklight-access_controls/blob/1c793c820afabc87134f1dffda045c633a580fa2/lib/blacklight/access_controls/catalog.rb#L20
v0.7.0.rc1
This is backwards incompatible in that the signature for the SearchBuilder has changed from Blacklight.
blacklight-access_controls requires an ability to be passed in:
def initialize(scope, ability:, permission_types: default_permission_types)
Version 0.2.0
Changes since version 0.1.0
- Added access controls for "download" ability.
- Updated the generator to handle the cases where the user model is different from default or when the search builder file is in a different location from default.
- Removed the Blacklight::AccessControls::PermissionsSolrDocument class, since it was empty. Now the code just uses a plain old SolrDocument.
Version 0.1.0
Ported the "discover" and "read" access controls from hydra-access-controls into this new gem. Blacklight Access Controls will provide cancan abilities and enforcement of access to records in Blacklight-based applications.