- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
- Класс: BitrixIntranetComponentUserProfile
- Вызов: UserProfile::getWhiteListOption
static function getWhiteListOption()
{
$result = [];
$viewFields = BitrixMainConfigOption::get("intranet", "user_profile_view_fields", false, SITE_ID);
if ($viewFields !== false)
{
return explode(",", $viewFields);
}
$val = Option::get('intranet', 'user_profile_whitelist', false, SITE_ID);
if (!empty($val))
{
$val = unserialize($val, ["allowed_classes" => false]);
if (
is_array($val)
&& !empty($val)
)
{
$result = $val;
}
}
return $result;
}