CCrmRequisiteRestProxy::innerGet

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRequisiteRestProxy
  4. innerGet
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRequisiteRestProxy
  • Вызов: CCrmRequisiteRestProxy::innerGet
protected function innerGet($ID, &$errors)
{
	$r = $this->getById($ID);
	if(!is_array($r))
	{
		$errors[] = "The Requisite with ID '{$ID}' is not found";
		return false;
	}

	if(!EntityRequisite::checkReadPermissionOwnerEntity($r['ENTITY_TYPE_ID'], $r['ENTITY_ID']))
	{
		$errors[] = 'Access denied.';
		return false;
	}

	return $r;
}

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