function user_edit_access

user_edit_access($account)

Access callback for user account editing.

File

modules/user/user.module, line 1617
Enables the user registration and login system.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_edit_access/7.x