• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/payment.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Payment
  • Вызов: Payment::hasAccess
public function hasAccess($userId): bool
{
	$orderId = $this->getOrderId();
	if ($orderId > 0)
	{
		return Service\Container::getInstance()->getUserPermissions($userId)->checkReadPermissions(
			\CCrmOwnerType::Order,
			(int)$orderId
		);
	}

	return false;
}