Index: domain.module =================================================================== RCS file: /cvs/drupal/contributions/modules/domain/domain.module,v retrieving revision 1.81 diff -u -r1.81 domain.module --- domain.module 19 Oct 2008 15:45:45 -0000 1.81 +++ domain.module 21 Oct 2008 05:43:28 -0000 @@ -853,7 +853,7 @@ } else { // The $account may not have domain information loaded, so get it. - $domains = domain_get_user_domains($account->uid); + $domains = domain_get_user_domains($account); $perm = 'delete domain nodes'; if ($op == 'update') { $perm = 'edit domain nodes'; @@ -1129,7 +1129,8 @@ $action = variable_get('domain_options', 0); $user_domains = array(); $default_options = array(); - foreach ($user->domain_user as $key => $value) { + $domains = domain_get_user_domains($user); + foreach ($domains as $key => $value) { if (abs($value) > 0) { $user_domains[] = $value; } Index: domain_content/domain_content.module =================================================================== RCS file: /cvs/drupal/contributions/modules/domain/domain_content/domain_content.module,v retrieving revision 1.22 diff -u -r1.22 domain_content.module --- domain_content/domain_content.module 12 Oct 2008 23:23:43 -0000 1.22 +++ domain_content/domain_content.module 21 Oct 2008 05:43:10 -0000 @@ -103,7 +103,7 @@ if (!$rule) { return FALSE; } - $domains = domain_get_user_domains($user->uid); + $domains = domain_get_user_domains($user); $check = FALSE; $editor = FALSE; // Can this user see the default site?