I've added and tested an integration method for view bulk operations.
My use case was that I needed to update many nodes to add/remove grants on bulk.
Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | nodeaccess-vbo_support-2411933-3-D7.patch | 6.95 KB | barry_fisher |
| #1 | nodeaccess-vbo_support-2411933-1-D7.patch | 5.6 KB | barry_fisher |
Comments
Comment #1
barry_fisher commentedPatch attached, which works for me from latest dev version, although will require testing by others to ensure that it all works as expected.
I ran out of time to integrate the user based grants, so my patch only contains role based additions/removals on bulk. It would be good if someone feels they can extend this patch at the @todo points, to fully integrate the user based options.
Once patch, be sure to flush all caches so the new action hook get picked up, and enable the VBO option in your view.
Comment #2
vlad.pavlovic commentedComment #3
barry_fisher commentedPatch on #1 is based from the 7.x-1.x-dev version which I ended having issues with Integrity Constraint Violations- perhaps because the dev version is work in progress and needs review where there grants are set in hook_node_update.
Anyway, I've reverted back to 7.x-1.4 and reworked the patch to work with this version. Still needs review.
Comment #6
tpetrv commentedHi Barry,
I'd like to create a form for bulk granting access to certain users for certain nodes. Can you suggest what will be the best way to do that?
Comment #7
greatmatter commentedI know this topic is old, but seeing an integration with VBO would be delightful!
Comment #8
d.fisher commentedDrupal 7 security support has ended as of 5 January 2025.
We are doing some housekeeping on the nodeaccess issue queue and moving all Drupal 7 issues to "postponed (maintainer needs more info)". See https://www.drupal.org/project/nodeaccess/issues/3516593.
If this issue persists on the latest dev branch of nodeaccess (2.0.x-dev) then please feel free to comment and we will change the version against this issue. If we do not hear any feedback within 2 weeks (9th October 2025) we will go ahead and close this issue as outdated.
Thank you.
Comment #9
d.fisher commentedAs per the above, as there has been no response we will now close this issue as outdated.
If this issue persists on the latest dev branch of nodeaccess (2.0.x-dev) then please feel free to update the version on this issue and reopen it.
Thank you.