• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/Configuration/General.php
  • Класс: BitrixImConfigurationGeneral
  • Вызов: General::allowedUserBySimpleNotificationSettings
static function allowedUserBySimpleNotificationSettings(int $userId, string $notifyType): bool
{
	$userSettings = static::createWithUserId($userId);
	if ($userSettings->getValue('notifyScheme') === 'simple')
	{
		$settingName = static::getNotifySettingByType($notifyType);
		return (bool)$userSettings->getValue($settingName);
	}

	return true;
}