Product::checkPermissionIBlockElementSectionBindModify

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. Product
  4. checkPermissionIBlockElementSectionBindModify
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/product.php
  • Класс: BitrixCatalogControllerProduct
  • Вызов: Product::checkPermissionIBlockElementSectionBindModify
protected function checkPermissionIBlockElementSectionBindModify($iblockId, $iblockSectionId): Result
{
	$iblockId = (int)$iblockId;
	$r = $this->existsIblock($iblockId);
	if (!$r->isSuccess())
	{
		return $r;
	}

	if (!CIBlockSectionRights::UserHasRightTo(
		$iblockId,
		$iblockSectionId,
		self::IBLOCK_ELEMENT_SECTION_BIND
	)) //access update
	{
		$r->addError(new Error('Access Denied', 200040300050));
	}

	return $r;
}

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