Closed (fixed)
Project:
Domain
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2007 at 20:49 UTC
Updated:
18 Oct 2007 at 23:43 UTC
Currently, on enabling or disabling this module, all nodes are set into the {node_access} table with the realm 'domain_id' and gid of '0'.
This is expected, as domain_node_access_records issues that realm as a default in the case that no options are selected. However, the UI allows users to set the "Send new content to all affilates' option, which suggests that we should set the realm 'domain_site' and 'gid' 0 instead.
I can't see, from the API, how to check the condition: If we are rebuilding the node access table, use this default IF this settings is active.
We may not be able to change it. The best option may be to include a function to "update all nodes to domain_site access."
Comments
Comment #1
agentrickardPerhaps we set an enabling function similar to the disabling function.
http://api.drupal.org/api/function/node_access_example_disabling/5.
Yup. It works.
Comment #2
agentrickardThere are now two defined variables at the top of the module, which control how node_access() records are re-written when the module is first installed.
Instructions are in the README. Code to be committed later today.
Comment #3
agentrickardDone. This is in the beta release.
Comment #4
agentrickardComment #5
(not verified) commented