This project is not covered by Drupal’s security advisory policy.
Helper module for developers working with Drupal core's node access API.
Methods provided:
NodeGrantsUpdater::update($node)
When you save a node, Drupal automatically triggers an update of access grants for that node. When a node is saved that should affect the access of other nodes, use a hook_node_update() / hook_node_insert() or a postSave method to trigger those other nodes to update themselves, too, with this code:
\Drupal::service('node_access_helper.update_node_grants')->update($nids);
(It will accept a node object, a node ID, or an array of either.)
Supporting this Module
You can support Agaric's overall contributions to Drupal and a bit beyond by supporting Drutopia at opencollective.com/drutopia. Thanks!
Supporting organizations:
Thought up and built, and maintains.
Project information
- Project categories: Access control, Developer tools, Security
- Created by mlncn on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
