• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmCatalogRestProxy
  • Вызов: CCrmCatalogRestProxy::innerGet
protected function innerGet($ID, &$errors)
{
	if(!CCrmProduct::CheckReadPermission($ID))
	{
		$errors[] = 'Access denied.';
		return false;
	}

	$result = CCrmCatalog::GetByID($ID);
	if(!is_array($result))
	{
		$errors[] = 'Catalog is not found.';
		return null;
	}

	return $result;
}