Install

Works with Drupal: ^9.4 || ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 34.9 KB
MD5: 706705fb827a226548ed662c0b9e032e
SHA-1: 1f7eec3e452d3434c0bb9760be4b7d6b1d606457
SHA-256: 14815b8db23ffda16b284515581687f75888c3bf28d6d4694a2a322559f02e4d
Download zip 52.5 KB
MD5: e8e8ed01f961dc11476559872f54361c
SHA-1: 20bcc62fe5fede64dc2a5adbbca102d626560e1e
SHA-256: 11349580ca43d926ccad0cabb5e3fb95fb0405d72dcf71d1209d7dc8479e3f0e

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.

Created by: steven jones
Created on: 5 May 2026 at 09:53 UTC
Last updated: 5 May 2026 at 09:54 UTC

Other releases