• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitymanagefacility.php
  • Класс: Bitrix\Crm\EntityManageFacility
  • Вызов: EntityManageFacility::canAddLead
public function canAddLead()
{
	// return false if can't add
	if (!$this->canAdd())
	{
		return false;
	}

	//  return true if register mode is "add always"
	if ($this->registerMode === self::REGISTER_MODE_ALWAYS_ADD)
	{
		return true;
	}

	// return true if can create plain lead
	if ($this->selector->canCreateLead())
	{
		return true;
	}

	return $this->canAddReturnCustomerLead();
}