Price::checkPermissionIBlockElementPriceModify

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. Price
  4. checkPermissionIBlockElementPriceModify
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/price.php
  • Класс: BitrixCatalogControllerPrice
  • Вызов: Price::checkPermissionIBlockElementPriceModify
private function checkPermissionIBlockElementPriceModify($productId)
{
	$r = new Result();

	$iblockId = CIBlockElement::GetIBlockByID($productId);
	if(!CIBlockElementRights::UserHasRightTo($iblockId, $productId, self::IBLOCK_ELEMENT_EDIT_PRICE))
	{
		$r->addError(new Error('Access Denied', 200040300030));
	}
	return $r;
}

Добавить комментарий