Correct the user_log_allowed function

This commit is contained in:
FusionPBX 2022-10-03 22:32:17 -06:00 committed by GitHub
parent b16265458e
commit 0db773e395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -589,12 +589,12 @@
return false;
}
//get the access control allowed nodes
//check to see if the address was authenticated successfully
$sql = "select count(user_log_uuid) ";
$sql .= "from v_user_logs ";
$sql .= "where ip_address = :ip_address ";
$sql .= "where remote_address = :remote_address ";
$sql .= "and result = 'success' ";
$parameters['ip_address'] = $ip_address;
$parameters['remote_address'] = $ip_address;
$database = new database;
$user_log_count = $database->select($sql, $parameters, 'column');
unset($database);