// user profiles of permanently-banned users should be unavailable to all but privacy-bypassing users
if ($user['is_banned'])
{
$ban = $this->getModelFromCache('XenForo_Model_Banning')->getBannedUserById($user['user_id']);
if ($ban && $ban['end_date'] == 0 && !$userModel->canBypassUserPrivacy($null, $viewingUser))
{
$errorPhraseKey = 'this_users_profile_is_not_available';
return false;
}
}