user_edit_access

Versions
6 – 7
user_edit_access($account)

Access callback for user account editing.

▾ 1 function calls user_edit_access()

profile_category_access in modules/profile/profile.module
Menu item access callback - check if a user has access to a profile category.

Code

modules/user/user.module, line 874

<?php
function user_edit_access($account) {
  return (($GLOBALS['user']->uid == $account->uid) || user_access('administer users')) && $account->uid > 0;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.