function user_view_access
Same name and namespace in other branches
- 7.x drupal-7.x/modules/user/user.module \user_view_access()
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().
Archivo
- drupal-6.x/
modules/ user/ user.module, line 891 - Enables the user registration and login system.
Código
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')));
}