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.
Hi,
node_privacy_byrole_change_role_action_form
had a little bug in creating the form. The patch adjusts the code to the one used in node_privacy_byrole_rolereference_action_form
.
Additionally, after invoking nodeapi(update) in node_privacy_byrole_change_role_action
it is neccessary to update the node access grants table. Otherwise the npbr permissions will be set, but the node(s) will still not be accessable.
I guess the same must be done in node_privacy_byrole_rolereference_action
but I couldn't look at this at the moment. You will know better :-)
Comment | File | Size | Author |
---|---|---|---|
npbr_change_role_action.patch | 852 bytes | Frank Steiner |
Comments
Comment #1
cYu CreditAttribution: cYu commentedBoth actions should now be fixed up and working with http://drupal.org/cvs?commit=171598
Comment #3
Frank Steiner CreditAttribution: Frank Steiner commentedPart of. We still need to update the grants table, otherwise a node which gets the view flag removed for all roles will still be visible to each role that could view it before. I.e. we still need