Index: modules/profile/profile.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.pages.inc,v retrieving revision 1.26 diff -u -p -r1.26 profile.pages.inc --- modules/profile/profile.pages.inc 17 Aug 2010 13:50:52 -0000 1.26 +++ modules/profile/profile.pages.inc 16 Sep 2010 01:44:16 -0000 @@ -38,7 +38,6 @@ function profile_browse() { $query ->fields('u', array('uid', 'access')) ->condition('v.fid', $field->fid) - ->condition('u.access', 0, '<>') ->condition('u.status', 0, '<>') ->orderBy('u.access', 'DESC'); @@ -99,7 +98,6 @@ function profile_browse() { ->fields('u', array('uid', 'access')) ->condition('u.uid', 0, '>') ->condition('u.status', 0, '>') - ->condition('u.access', 0, '>') ->orderBy('u.access', 'DESC') ->limit(20) ->execute() Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.1200 diff -u -p -r1.1200 user.module --- modules/user/user.module 11 Sep 2010 06:03:12 -0000 1.1200 +++ modules/user/user.module 16 Sep 2010 01:39:14 -0000 @@ -421,12 +421,6 @@ function user_save($account, $edit = arr user_module_invoke('presave', $edit, $account, $category); if (is_object($account) && !$account->is_new) { - // Consider users edited by an administrator as logged in, if they haven't - // already, so anonymous users can view the profile (if allowed). - if (empty($edit['access']) && empty($account->access) && user_access('administer users')) { - $edit['access'] = REQUEST_TIME; - } - // Process picture uploads. if (!$delete_previous_picture = empty($edit['picture']->fid)) { $picture = $edit['picture']; @@ -527,12 +521,6 @@ function user_save($account, $edit = arr if (!isset($edit['created'])) { $edit['created'] = REQUEST_TIME; } - // Consider users created by an administrator as already logged in, so - // anonymous users can view the profile (if allowed). - if (empty($edit['access']) && user_access('administer users')) { - $edit['access'] = REQUEST_TIME; - } - $edit['mail'] = trim($edit['mail']); $success = drupal_write_record('users', $edit); if ($success === FALSE) { @@ -1463,7 +1451,6 @@ function user_register_access() { return user_is_anonymous() && variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL); } - /** * User view access callback. * @@ -1471,7 +1458,6 @@ function user_register_access() { * Can either be a full user object or a $uid. */ function user_view_access($account) { - $uid = is_object($account) ? $account->uid : (int) $account; // Never allow access to view the anonymous user account. @@ -1485,7 +1471,7 @@ function user_view_access($account) { if (!is_object($account)) { $account = user_load($uid); } - return (is_object($account) && $account->access && $account->status); + return (is_object($account) && $account->status); } } return FALSE;