Bug fix use column instead of field

If updated in the last few days then you need should clear the file cache. Also disabled event_guard_log_allowed until there is a setting to enable or disable it.

Update the source code
cd /var/www/fusionpbx
rm /var/cache/fusionpbx/*
service event_guard restart
This commit is contained in:
FusionPBX 2022-09-18 17:53:03 -06:00 committed by GitHub
parent 884e90ac39
commit 446f4615bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -467,6 +467,7 @@
}
//allow access for addresses that have been unblocked
/*
if (event_guard_log_allowed($ip_address)) {
//save address to the cache as allowed
$cache->set("switch:allowed:".$ip_address, 'true');
@ -479,6 +480,7 @@
//return boolean true
return true;
}
*/
//allow access if the cidr address is allowed
if (access_control_allowed($ip_address)) {
@ -594,7 +596,7 @@
$sql .= "and result = 'success' ";
$parameters['ip_address'] = $ip_address;
$database = new database;
$user_log_count = $database->select($sql, $parameters, 'field');
$user_log_count = $database->select($sql, $parameters, 'column');
unset($database);
//debug info
@ -629,7 +631,7 @@
$sql .= "and log_status = 'unblocked' ";
$parameters['ip_address'] = $ip_address;
$database = new database;
$user_log_count = $database->select($sql, $parameters, 'field');
$user_log_count = $database->select($sql, $parameters, 'column');
unset($database);
//debug info