function user_edit_access

Same name and namespace in other branches
  1. 6.x drupal-6.x/modules/user/user.module \user_edit_access()

Access callback for user account editing.

1 call to user_edit_access()
profile_category_access in drupal-7.x/modules/profile/profile.module
Menu item access callback - check if a user has access to a profile category.
4 string references to 'user_edit_access'
drupal-6.bare.database.php in drupal-7.x/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal-7.x/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
openid_menu in drupal-7.x/modules/openid/openid.module
Implements hook_menu().
user_menu in drupal-7.x/modules/user/user.module
Implements hook_menu().

Archivo

drupal-7.x/modules/user/user.module, line 1587
Enables the user registration and login system.

Código

function user_edit_access($account) {
  return (($GLOBALS['user']->uid == $account->uid) || user_access('administer users')) && $account->uid > 0;
}