• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitymanagefacility.php
  • Класс: Bitrix\Crm\EntityManageFacility
  • Вызов: EntityManageFacility::canAdd
protected function canAdd()
{
	$allowModes = [
		self::REGISTER_MODE_DEFAULT,
		self::REGISTER_MODE_ONLY_ADD,
		self::REGISTER_MODE_ALWAYS_ADD
	];
	if (!in_array($this->registerMode, $allowModes))
	{
		return false;
	}

	return !$this->getSelector()->hasExclusions();
}