• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/util.php
  • Класс: BitrixIntranetUtil
  • Вызов: Util::isIntranetUser
static function isIntranetUser(int $userId = null): bool
{
	try
	{
		$userId ??= CurrentUser::get()->getId();

		return (new User($userId))->isIntranet();
	}
	catch (ArgumentOutOfRangeException $e)
	{
		return false;
	}
}