Your IP : 3.129.15.56


Current Path : /home/bitrix/ext_www/dev.home-comfort.in.ua/bitrix/modules/sale/lib/discount/context/
Upload File :
Current File : /home/bitrix/ext_www/dev.home-comfort.in.ua/bitrix/modules/sale/lib/discount/context/fuser.php

<?php

namespace Bitrix\Sale\Discount\Context;

use Bitrix\Sale\Discount\RuntimeCache;

class Fuser extends BaseContext
{
	protected $fuserId;

	/**
	 * FUser constructor.
	 */
	public function __construct($fuserId)
	{
		$this->fuserId = $fuserId;
		$this->userId = RuntimeCache\FuserCache::getInstance()->getUserIdById($this->fuserId);
		$this->userGroups = \CUser::getUserGroup($this->userId);
	}
}