CCrmCompanyRestProxy::innerDelete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmCompanyRestProxy
  4. innerDelete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmCompanyRestProxy
  • Вызов: CCrmCompanyRestProxy::innerDelete
protected function innerDelete($ID, &$errors, array $params = null)
{
	if(!CCrmCompany::CheckDeletePermission($ID))
	{
		$errors[] = 'Access denied.';
		return false;
	}

	$entity = self::getEntity();
	$result = $entity->Delete($ID);
	if($result !== true)
	{
		$errors[] = $entity->LAST_ERROR;
	}

	return $result;
}

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