Fix CDR HTTP authentication logic bug (#7382)

- Add missing negation operator in http_enabled check
- Resolves silent CDR import failures when http_enabled is true
- Fixes authentication logic that was preventing valid HTTP CDR imports
This commit is contained in:
FusionPBX
2025-05-31 09:06:01 -06:00
committed by GitHub
parent 9d90a701b6
commit 5d0b4afbea

View File

@@ -1649,7 +1649,7 @@ if (!class_exists('xml_cdr')) {
//if http enabled is set to false then deny access
if (!defined('STDIN')) {
if ($this->setting->get('cdr', 'http_enabled', false)) {
if (!$this->setting->get('cdr', 'http_enabled', false)) {
openlog('FusionPBX', LOG_NDELAY, LOG_AUTH);
syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR'].'] XML CDR import default setting http_enabled is not enabled. Line: '.__line__);
closelog();