function user_view_access in Drupal 6
Same name and namespace in other branches
- 7 modules/user/user.module \user_view_access()
1 call to user_view_access()
- _tracker_user_access in modules/tracker/tracker.module
- Access callback for user/%user/track
1 string reference to 'user_view_access'
- user_menu in modules/user/user.module
- Implementation of hook_menu().
File
- modules/user/user.module, line 898
- Enables the user registration and login system.
Code
function user_view_access($account) {
return $account && $account->uid && ($GLOBALS['user']->uid == $account->uid || user_access('administer users') || $account->access && $account->status && user_access('access user profiles'));
}