In the domain_domains() function, the domain['site_grant'] array element needs to be set manually.

Perhaps we should have a per-site setting for this.

Corrected function:

/**
 * Return all active domains (including the default) as an array.
 */
function domain_domains() {
  static $domains;
  if (empty($domains)) {
    $domains = array();
    $domains[] = domain_default();
    // Query the db for active domain records.
    $result = db_query("SELECT domain_id, subdomain, sitename, scheme FROM {domain} ORDER BY sitename ASC");
    while ($domain = db_fetch_array($result)) {
      $domain['path'] = domain_get_path($domain);
      // Grant access to all affiliates.
      $_domain['site_grant'] = DOMAIN_SITE_GRANT;      
      $domains[] = $domain;
    }
  }  
  return $domains;
}

Comments

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.