? .DS_Store ? includes/.DS_Store ? includes/database/.DS_Store ? modules/search/.new.MKbmKA ? sites/all/.DS_Store ? sites/all/modules/.DS_Store ? sites/all/modules/content_browser ? sites/all/modules/devel ? sites/default/files ? sites/default/private ? sites/default/settings.php Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.558 diff -u -p -r1.558 theme.inc --- includes/theme.inc 22 Dec 2009 14:47:14 -0000 1.558 +++ includes/theme.inc 28 Dec 2009 18:39:27 -0000 @@ -2052,7 +2052,7 @@ function template_preprocess_username(&$ } $variables['name'] = check_plain($name); - $variables['profile_access'] = user_access('access user profiles'); + $variables['profile_access'] = user_access('access user account pages'); $variables['link_attributes'] = array(); // Populate link path and attributes if appropriate. if ($variables['uid'] && $variables['profile_access']) { Index: modules/comment/comment.test =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.test,v retrieving revision 1.59 diff -u -p -r1.59 comment.test --- modules/comment/comment.test 16 Dec 2009 19:53:53 -0000 1.59 +++ modules/comment/comment.test 28 Dec 2009 18:39:27 -0000 @@ -1065,7 +1065,7 @@ class CommentRdfaTestCase extends Commen parent::setUp('comment', 'rdf'); $this->admin_user = $this->drupalCreateUser(array('administer content types', 'administer comments', 'administer permissions', 'administer blocks')); - $this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create article content', 'access user profiles')); + $this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create article content', 'access user account pages')); // Enables anonymous user comments. user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array( Index: modules/contact/contact.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/contact/contact.pages.inc,v retrieving revision 1.38 diff -u -p -r1.38 contact.pages.inc --- modules/contact/contact.pages.inc 14 Dec 2009 13:51:57 -0000 1.38 +++ modules/contact/contact.pages.inc 28 Dec 2009 18:39:27 -0000 @@ -284,5 +284,5 @@ function contact_personal_form_submit($f // Jump to the contacted user's profile page. drupal_set_message(t('Your message has been sent.')); - $form_state['redirect'] = user_access('access user profiles') ? 'user/' . $values['recipient']->uid : ''; + $form_state['redirect'] = user_access('access user account pages') ? 'user/' . $values['recipient']->uid : ''; } Index: modules/file/file.module =================================================================== RCS file: /cvs/drupal/drupal/modules/file/file.module,v retrieving revision 1.15 diff -u -p -r1.15 file.module --- modules/file/file.module 12 Dec 2009 23:04:57 -0000 1.15 +++ modules/file/file.module 28 Dec 2009 18:39:28 -0000 @@ -155,7 +155,7 @@ function file_file_download($uri, $field } } if ($obj_type == 'user') { - if (user_access('access user profiles') || $user->uid == $reference->uid) { + if (user_access('access user account pages') || $user->uid == $reference->uid) { $denied = FALSE; break 3; } Index: modules/node/node.test =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.test,v retrieving revision 1.60 diff -u -p -r1.60 node.test --- modules/node/node.test 26 Dec 2009 16:50:09 -0000 1.60 +++ modules/node/node.test 28 Dec 2009 18:39:28 -0000 @@ -550,7 +550,7 @@ class NodePostSettingsTestCase extends D function setUp() { parent::setUp(); - $web_user = $this->drupalCreateUser(array('create page content', 'administer content types', 'access user profiles')); + $web_user = $this->drupalCreateUser(array('create page content', 'administer content types', 'access user account pages')); $this->drupalLogin($web_user); } Index: modules/profile/profile.module =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v retrieving revision 1.284 diff -u -p -r1.284 profile.module --- modules/profile/profile.module 14 Dec 2009 20:38:15 -0000 1.284 +++ modules/profile/profile.module 28 Dec 2009 18:39:29 -0000 @@ -81,7 +81,7 @@ function profile_menu() { $items['profile'] = array( 'title' => 'User list', 'page callback' => 'profile_browse', - 'access arguments' => array('access user profiles'), + 'access arguments' => array('access user account pages'), 'file' => 'profile.pages.inc', 'type' => MENU_SUGGESTED_ITEM, ); @@ -127,7 +127,7 @@ function profile_menu() { $items['profile/autocomplete'] = array( 'title' => 'Profile autocomplete', 'page callback' => 'profile_autocomplete', - 'access arguments' => array('access user profiles'), + 'access arguments' => array('access user account pages'), 'file' => 'profile.pages.inc', 'type' => MENU_CALLBACK, ); @@ -175,7 +175,7 @@ function profile_block_save($delta = '', * Implements hook_block_view(). */ function profile_block_view($delta = '') { - if (user_access('access user profiles')) { + if (user_access('access user account pages')) { $output = ''; if ((arg(0) == 'node') && is_numeric(arg(1)) && (arg(2) == NULL)) { $node = node_load(arg(1)); @@ -275,7 +275,7 @@ function profile_view_field($account, $f // Only allow browsing of private fields for admins, if browsing is enabled, // and if a user has permission to view profiles. Note that this check is // necessary because a user may always see their own profile. - $browse = user_access('access user profiles') + $browse = user_access('access user account pages') && (user_access('administer users') || $field->visibility != PROFILE_PRIVATE) && !empty($field->page); Index: modules/profile/profile.test =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.test,v retrieving revision 1.23 diff -u -p -r1.23 profile.test --- modules/profile/profile.test 20 Nov 2009 04:15:15 -0000 1.23 +++ modules/profile/profile.test 28 Dec 2009 18:39:29 -0000 @@ -12,7 +12,7 @@ class ProfileTestCase extends DrupalWebT parent::setUp('profile'); variable_set('user_register', 1); - $this->admin_user = $this->drupalCreateUser(array('administer users', 'access user profiles')); + $this->admin_user = $this->drupalCreateUser(array('administer users', 'access user account pages')); // This is the user whose profile will be edited. $this->normal_user = $this->drupalCreateUser(); @@ -350,7 +350,7 @@ class ProfileTestAutocomplete extends Pr $this->assertResponse(200, t('Autocomplete path allowed to user with permission.')); $this->assertRaw($field['value'], t('Autocomplete value found.')); - // Logout and login with a user without the 'access user profiles' permission. + // Logout and login with a user without the 'access user account pages' permission. $this->drupalLogout(); $this->drupalLogin($this->normal_user); Index: modules/system/system.test =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.test,v retrieving revision 1.99 diff -u -p -r1.99 system.test --- modules/system/system.test 24 Dec 2009 16:54:56 -0000 1.99 +++ modules/system/system.test 28 Dec 2009 18:39:30 -0000 @@ -1072,7 +1072,7 @@ class SystemMainContentFallback extends $this->drupalLogin($this->admin_user); // Create a web user. - $this->web_user = $this->drupalCreateUser(array('access user profiles', 'access content')); + $this->web_user = $this->drupalCreateUser(array('access user account pages', 'access content')); } /** Index: modules/tracker/tracker.test =================================================================== RCS file: /cvs/drupal/drupal/modules/tracker/tracker.test,v retrieving revision 1.16 diff -u -p -r1.16 tracker.test --- modules/tracker/tracker.test 2 Dec 2009 19:26:22 -0000 1.16 +++ modules/tracker/tracker.test 28 Dec 2009 18:39:30 -0000 @@ -85,7 +85,7 @@ class TrackerTest extends DrupalWebTestC $this->assertText($other_published_my_comment->title[LANGUAGE_NONE][0]['value'], t("Nodes that the user has commented on appear in the user's tracker listing.")); // Verify that unpublished comments are removed from the tracker. - $admin_user = $this->drupalCreateUser(array('administer comments', 'access user profiles')); + $admin_user = $this->drupalCreateUser(array('administer comments', 'access user account pages')); $this->drupalLogin($admin_user); $this->drupalPost('comment/1/edit', array('status' => COMMENT_NOT_PUBLISHED), t('Save')); $this->drupalGet('user/' . $this->user->uid . '/track'); Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.1095 diff -u -p -r1.1095 user.module --- modules/user/user.module 26 Dec 2009 16:50:09 -0000 1.1095 +++ modules/user/user.module 28 Dec 2009 18:39:32 -0000 @@ -765,7 +765,7 @@ function user_permission() { 'title' => t('Administer users'), 'description' => drupal_placeholder(array('text' => t('Warning: Give to trusted roles only; this permission has security implications.'))), ), - 'access user profiles' => array( + 'access user account pages' => array( 'title' => t('View user profiles'), ), 'change own username' => array( @@ -830,7 +830,7 @@ function user_search_info() { * Implements hook_search_access(). */ function user_search_access() { - return user_access('access user profiles'); + return user_access('access user account pages'); } /** @@ -1297,7 +1297,7 @@ function template_preprocess_user_pictur else { $variables['user_picture'] = theme('image', array('path' => $filepath, 'alt' => $alt, 'title' => $alt, 'attributes' => array(), 'getsize' => FALSE)); } - if (!empty($account->uid) && user_access('access user profiles')) { + if (!empty($account->uid) && user_access('access user account pages')) { $attributes = array('attributes' => array('title' => t('View user profile.')), 'html' => TRUE); $variables['user_picture'] = l($variables['user_picture'], "user/$account->uid", $attributes); } @@ -1349,7 +1349,7 @@ function user_view_access($account) { // Administrators can view all accounts. user_access('administer users') || // The user is not blocked and logged in at least once. - ($account->access && $account->status && user_access('access user profiles')) + ($account->access && $account->status && user_access('access user account pages')) ); } @@ -1383,7 +1383,7 @@ function user_menu() { 'title' => 'User autocomplete', 'page callback' => 'user_autocomplete', 'access callback' => 'user_access', - 'access arguments' => array('access user profiles'), + 'access arguments' => array('access user account pages'), 'type' => MENU_CALLBACK, 'file' => 'user.pages.inc', ); @@ -2491,7 +2491,7 @@ function user_role_delete($role) { * @code * array( * 'administer nodes' => 0, - * 'access user profiles' => 1, + * 'access user account pages' => 1, * ) * @endcode * Existing permissions are not changed, unless specified in $permissions. Index: modules/user/user.test =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.test,v retrieving revision 1.72 diff -u -p -r1.72 user.test --- modules/user/user.test 13 Dec 2009 09:14:21 -0000 1.72 +++ modules/user/user.test 28 Dec 2009 18:39:32 -0000 @@ -893,7 +893,7 @@ class UserPermissionsTestCase extends Dr function setUp() { parent::setUp(); - $this->admin_user = $this->drupalCreateUser(array('administer permissions', 'access user profiles', 'administer site configuration', 'administer modules', 'administer users')); + $this->admin_user = $this->drupalCreateUser(array('administer permissions', 'access user account pages', 'administer site configuration', 'administer modules', 'administer users')); // Find the new role ID - it must be the maximum. $all_rids = array_keys($this->admin_user->roles); @@ -920,14 +920,14 @@ class UserPermissionsTestCase extends Dr $this->assertTrue(user_access('administer nodes', $account), t('User now has "administer nodes" permission.')); // Remove a permission. - $this->assertTrue(user_access('access user profiles', $account), t('User has "access user profiles" permission.')); + $this->assertTrue(user_access('access user account pages', $account), t('User has "access user account pages" permission.')); $edit = array(); - $edit[$rid . '[access user profiles]'] = FALSE; + $edit[$rid . '[access user account pages]'] = FALSE; $this->drupalPost('admin/config/people/permissions', $edit, t('Save permissions')); $this->assertText(t('The changes have been saved.'), t('Successful save message displayed.')); drupal_static_reset('user_access'); drupal_static_reset('user_role_permissions'); - $this->assertFalse(user_access('access user profiles', $account), t('User no longer has "access user profiles" permission.')); + $this->assertFalse(user_access('access user account pages', $account), t('User no longer has "access user account pages" permission.')); } /** @@ -959,19 +959,19 @@ class UserPermissionsTestCase extends Dr // Verify current permissions. $this->assertFalse(user_access('administer nodes', $account), t('User does not have "administer nodes" permission.')); - $this->assertTrue(user_access('access user profiles', $account), t('User has "access user profiles" permission.')); + $this->assertTrue(user_access('access user account pages', $account), t('User has "access user account pages" permission.')); $this->assertTrue(user_access('administer site configuration', $account), t('User has "administer site configuration" permission.')); // Change permissions. $permissions = array( 'administer nodes' => 1, - 'access user profiles' => 0, + 'access user account pages' => 0, ); user_role_change_permissions($rid, $permissions); // Verify proper permission changes. $this->assertTrue(user_access('administer nodes', $account), t('User now has "administer nodes" permission.')); - $this->assertFalse(user_access('access user profiles', $account), t('User no longer has "access user profiles" permission.')); + $this->assertFalse(user_access('access user account pages', $account), t('User no longer has "access user account pages" permission.')); $this->assertTrue(user_access('administer site configuration', $account), t('User still has "administer site configuration" permission.')); } } @@ -1106,7 +1106,7 @@ class UserAutocompleteTestCase extends D // Set up two users with different permissions to test access. $this->unprivileged_user = $this->drupalCreateUser(); - $this->privileged_user = $this->drupalCreateUser(array('access user profiles')); + $this->privileged_user = $this->drupalCreateUser(array('access user account pages')); } /**