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?

CommentFileSizeAuthor
#5 domain_access_bridge-2313355-5.patch969 bytespiepkrak

Comments

jlemosy’s picture

Issue summary: View changes
Anonymous’s picture

Patches are welcome since I currently don't have any spare time left...

Anonymous’s picture

Status: Active » Needs work
jlemosy’s picture

I 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):

$gids[] = domain_access_bridge_get_grant_id($domain_realm, $_domain['domain_id'], $access_realm, $access_gid);

MODIFIED:

// Check 'domain_site' realm for access grants
if ($domain_realm == 'domain_site') {
  $domain_gid = $domain_gid;
} else if ($domain_realm == 'domain_id') {
  $domain_gid = $_domain['domain_id'];
}
$gids[] = domain_access_bridge_get_grant_id($domain_realm, $domain_gid, $access_realm, $access_gid);
piepkrak’s picture

StatusFileSize
new969 bytes

@JLeMosy: Your patch seems to work fine for me too. Hereby a patch file.

Anonymous’s picture

Thanks for filing this. I moved the if/else statement one foreach loop up to avoid reassigning $domain_gid over 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.

Anonymous’s picture

Assigned: Unassigned »
Status: Needs work » Fixed

  • Propaganistas committed 6c57312 on 7.x-1.x
    Issue #2313355 by JLeMosy: "Send to all affiliates" grant is removed
    
Anonymous’s picture

Status: Fixed » Closed (fixed)