1 user.module user_edit_access($account)

Access callback for user account editing.

File

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

Code

function user_edit_access($account) {
  // Account for anonymous users, which are of class AnonymousUser.
  if ($account instanceof User) {
    /** @var User $account */
    return $account->access('update');
  }
  return FALSE;
}