Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On my site a single node suddenly showed "access denied" for guests.
We could track down the bug. In the modules configuration I did not activate the roles "guest" and "authenticated users" in the allowed roles configuration.
In this case the module did not preserve the default grants for anonymous users, we fixed the bug in the attached patch. Thanks blackice2999!
Comment | File | Size | Author |
---|---|---|---|
nodeaccess-preservegrants-ignored.patch | 2.29 KB | k4v | |
Comments
Comment #1
Blackice2999 CreditAttribution: Blackice2999 commentedhi, i can confirm this ;)
The second condition will be never reached because the first condition fails, so we never comes to the preserve elseif.
Comment #2
Blackice2999 CreditAttribution: Blackice2999 commentedThe Patch is agains the dev version... so change the issue version to dev.
Comment #3
vlad.pavlovic CreditAttribution: vlad.pavlovic commentedPushed to dev version. It will take some time before it is available for download. Thank you for your work on this.