• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/publicaction.php
  • Класс: BitrixLandingPublicAction
  • Вызов: PublicAction::checkForExtranet
static function checkForExtranet(): bool
{
	if (BitrixLandingManager::isAdmin())
	{
		return true;
	}

	if (Type::getCurrentScopeId() === Type::SCOPE_CODE_GROUP)
	{
		return true;
	}

	if (BitrixMainLoader::includeModule('extranet'))
	{
		return CExtranet::isIntranetUser(
			CExtranet::getExtranetSiteID(),
			BitrixLandingManager::getUserId()
		);
	}

	return true;
}