- Issue created by @nicolas bouteille
- Status changed to Closed: works as designed
11 months ago 1:23pm 7 February 2024 - πΊπ¦Ukraine AstonVictor
Hi Nicolas,
we used hook_entity_access() before but it doesn't cover all cases. e.g. it doesn't work with queries.
Creating node grants should not take a lot of time because the code executes for a single node when the node creates/updates.
After changing permissions, there is no reason to rebuild node grants because we check permissions in hook_node_grants() hook.thanks
- π«π·France nicolas bouteille
Thank you for your feedback.
Indeed, the only moment it would have taken 20 minutes would have been when updating your module. Because at that moment the node_access table is empty and 68k node permission need to be created. But I did not want to have our website down for that long so I uninstalled.