• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/product.php
  • Класс: BitrixCatalogControllerProduct
  • Вызов: Product::checkPermissionIBlockElementGet
protected function checkPermissionIBlockElementGet($elementId): Result
{
	$iblockId = (int)CIBlockElement::GetIBlockByID($elementId);
	$r = $this->existsIblock($iblockId);
	if (!$r->isSuccess())
	{
		return $r;
	}

	if (!CIBlockElementRights::UserHasRightTo($iblockId, $elementId, self::IBLOCK_ELEMENT_READ)) //access read
	{
		$r->addError(new Error('Access Denied', 200040300040));
	}

	return $r;
}