1 user.module | user_view_access($account) |
User view access callback.
Parameters
User|AnonymousUser|object $account: Can either be a full user object or a $uid.
Return value
bool: Whether access is allowed or not.
File
- core/
modules/ user/ user.module, line 1355 - Enables the user registration and login system.
Code
function user_view_access($account) {
if ($account instanceof User) {
return $account && $account->access('view');
}
return FALSE;
}