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.
I made a content type. Originally the default nodeaccess settings allowed access to the content type only for admins. Now, I want to change it to allow access to an additional role. I changed the default settings for that content type. For some reason, the old nodes, don't get updated even after rebuilding permissions. New nodes get the right grants. Old nodes don't. There are about 299 nodes of that content type. Do I have to go into EACH one and change the grants by hand? I hope not.
Comments
Comment #1
davesommerhalder CreditAttribution: davesommerhalder commentedgot the same problem ...
Comment #2
dariogcode CreditAttribution: dariogcode commentedSame here, also occurs if you allow grants per node, and want later to overwrite all nodes with current nodeaccess settings.
Comment #3
tstackhouse CreditAttribution: tstackhouse commentedI'm running into this as well. Nodes which have had grants edited do not get updated with the defaults I set on the configuration page. Even when the role in question is hidden from the grant tab.
Comment #4
knalstaaf CreditAttribution: knalstaaf commentedComment #5
dagomar CreditAttribution: dagomar commentedTry rebuilding the node permissions.
Comment #6
vlad.pavlovic CreditAttribution: vlad.pavlovic commentedYes, this is intended behaviour. The alternative would be that every time you change your defaults, that you lose all of your existing permissions.
In the Drupal 7 version (maybe), I might add a button to the admin form that would wipe all existing permissions and rewrite them with new defaults, but there is no more feature development for Drupal 6 version. If anyone here needs the change badly, please submit a patch and I will gladly commit it.