• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/CustomSection/Manager.php
  • Класс: BitrixIntranetCustomSectionManager
  • Вызов: Manager::getCurrentUserId
protected function getCurrentUserId(): int
{
	global $USER;
	if (is_object($USER) && ($USER instanceof CUser))
	{
		return (int)CurrentUser::get()->getId();
	}

	return 0;
}