Install
Works with Drupal: ^9.4 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Drupal 11 support and other fixes and changes
Please note that the way that the settings for content access were stored in config was changed in this release, and you will want to run update hooks and capture the config changes.
Contributors (17)
ananya.k, averagejoe3000, darthsteven, flyke, gisle, gisleh, joegl, jons, jurgenhaas, michèle, olmyr, quadrexdev, rahul17, sourabhjain, spfaffly, steven jones, tr
Changelog
Issues: 20 issues resolved.
Changes since 2.0.0 (compare):
Bug
- #3472655 by jons, steven jones: Fix misspelling of transparant, and let
- 3564435: Fix deprecation.
- 3564435: Use static method reference.
- #3570550 Fixing phpunit/phpstan errors/deprecations
- #3570550 Call getBundleLabels if available
- Merge branch '2.1.x' of git.drupal.org:project/content_access into 3564435-fix-deprecation
- Revert #3464095: Only show rebuild permission messages to users who can access link
- fix: #3570550 Resolve phpstan/phpunit deprecations and errors
Feature
- #3392037: Rebuild permission warning shouldn't be shown to users who can't do so
- Resolve #3194932 Add a hook to allow other access than default to content access per node page"
- #3377809: Config is stored with serialized data
- feat: #3584446 Lack of testing for content_access_optimize_grants
- refactor: #3226834 Rename hooks to include 'content_access' prefix
Misc
- By gisle: Updated README.md
- Check rebuild form access before displaying link to form
Task
- #3386296: Fix phpcs and stylelint issues
- #3479745 by olmyr, steven jones, ananya.k, rahul17, michèle, flyke, jurgenhaas: Drupal 11 Compatibility
- #3509164 Renamed content_access_proccess_grant to content_access_process_grant
- feat: #3580946 Add test for reacting to role changes
- feat: #3584179 Add tests for 'own access' type grants
- fix: #3226837 Document this module's hooks in content_access.api.php
- test: #575606 Ensure that new roles are not granted access by default
Change Records
Note that the 2.x series has a flaw in how per-role view_own/update_own/delete_own grants work and there may be inconsistencies if you have users that change roles. This will be addressed in #3579507: Re-work the author grant realms in a 3.x branch of the module. Nothing about the way that those grants work has been changed in 2.x for some time, so any workarounds or bugs masquerading as features will remain in place for you.