• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/sender.php
  • Класс: BitrixSenderPostingSender
  • Вызов: Sender::canSendConsentToRecipient
protected function canSendConsentToRecipient($recipient) : bool
{
	return (
		in_array($recipient['CONTACT_CONSENT_STATUS'], [
			ContactTable::CONSENT_STATUS_NEW,
			ContactTable::CONSENT_STATUS_WAIT]
		) &&
		!Consent::checkIfConsentRequestLimitExceeded(
			$recipient['CONTACT_CONSENT_REQUEST'],
			$this->message->getTransport()->getCode()
		) &&
		$this->needConsent()
	);
}