When Domain Access Bridge is used, it appears to completely remove the "Send to all affiliates" grant provided by Domain Access. Therefore, the only way to ensure a node is shown across all domains is to manually select each domain in the "Publish to" list. This could pose a problem if there are many domains to choose from, or if a new domain is added in the future. Is it possible to retain the "Send to all affiliates" grant when using this module?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | domain_access_bridge-2313355-5.patch | 969 bytes | piepkrak |
Comments
Comment #1
jlemosy commentedComment #2
Anonymous (not verified) commentedPatches are welcome since I currently don't have any spare time left...
Comment #3
Anonymous (not verified) commentedComment #4
jlemosy commentedI was able to fix the issue by modifying line 104 in domain_access_bridge.module as follows. Basically, hook_node_grants_alter() now checks the 'domain_site' realm for grants as well as each individual 'domain_id'. The following is working for me, but I welcome any feedback on how it could be improved, or if there's anything I'm overlooking...
ORIGINAL (Line 104):
MODIFIED:
Comment #5
piepkrak commented@JLeMosy: Your patch seems to work fine for me too. Hereby a patch file.
Comment #6
Anonymous (not verified) commentedThanks for filing this. I moved the if/else statement one foreach loop up to avoid reassigning
$domain_gidover and over with the same value.This has been implemented in dev currently. It will be incorporated in the stable version soon along with some other fixes.
Comment #7
Anonymous (not verified) commentedComment #9
Anonymous (not verified) commented