CCrmCurrencyRestProxy::innerDelete

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

	$result = CCrmCurrency::Delete($ID);
	if($result !== true)
	{
		$errors[] = CCrmCurrency::GetLastError();
	}

	return $result;
}

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