function user_view_access

7.x user.module user_view_access($account)
6.x user.module user_view_access($account)
1 call to user_view_access()
_tracker_user_access in drupal-6.x/modules/tracker/tracker.module
Access callback for user/%user/track
1 string reference to 'user_view_access'
user_menu in drupal-6.x/modules/user/user.module
Implementation of hook_menu().

File

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

Code

function user_view_access($account) {
  return $account && $account->uid &&
    (
    // Always let users view their own profile.
    ($GLOBALS['user']->uid == $account->uid) ||
    // 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'))
    );
}