IsAuthorized()) { $params['customerId'] = $USER->GetID(); } $str = ""; \Bitrix\Main\Page\Asset::getInstance()->addString($str, true); return true; } else { return false; } } }