• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/fuser.php
  • Класс: BitrixSaleFuser
  • Вызов: Fuser::getIdByCurrentUser
static function getIdByCurrentUser(): ?int
{
	$userId = self::getCurrentUserId();
	if ($userId === null)
	{
		return null;
	}

	return static::getIdByFilter([
		'=USER_ID' => $userId,
	]);
}