• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/hook/page/headblock.php
  • Класс: BitrixLandingHookPageHeadBlock
  • Вызов: HeadBlock::isLockedFeature
static function isLockedFeature()
{
	if (ModuleManager::isModuleInstalled('bitrix24'))
	{
		$checkFeature = BitrixLandingRestrictionManager::isAllowed(
			'limit_sites_html_js'
		);
		if ($checkFeature)
		{
			return false;
		}
		$dateCreate = BitrixMainConfigOption::get(
			'main', '~controller_date_create'
		);
		// for all portals early than 01.07.2019, feature are available
		if ($dateCreate < 1562000000)
		{
			// this option will be set after downgrade in bitrix24
			return Manager::getOption('html_disabled', 'N') == 'Y';
		}
		else
		{
			return true;
		}
	}

	return false;
}