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:
Rob Mosher
2025-05-31 11:01:17 -04:00
committed by GitHub
parent 4ca21d906f
commit 5722d3e9e6

View File

@@ -1703,7 +1703,7 @@
//if http enabled is set to false then deny access
if (!defined('STDIN')) {
if ($this->settings->get('cdr', 'http_enabled', false)) {
if (!$this->settings->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();