PublicAction::checkForExtranet

  1. Bitrix24 API (v. 23.675.0)
  2. landing
  3. PublicAction
  4. checkForExtranet
  • Модуль: 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;
}

Добавить комментарий