• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/consent/consent.php
  • Класс: Bitrix\Sender\Consent\Consent
  • Вызов: Consent::isUnsub
static function isUnsub(string $status, ?int $requests, ?string $code): bool
{
	return Consent::getTransport($code)->isConsentAvailable() &&
		(
			$status === ContactTable::CONSENT_STATUS_DENY ||
			Consent::checkIfConsentRequestLimitExceeded($requests, $code) &&
			$status !== ContactTable::CONSENT_STATUS_ACCEPT
		);
}