Fixed "Missed" link and exclude LOSE_RACE from CDR stats

Simple change to exclude lose_race and fix a URL change for the xml_cdr page.
This commit is contained in:
demonspork
2021-02-16 21:21:59 -06:00
parent c6cb47de95
commit 202bc7363e
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -280,6 +280,10 @@
$sql_where_ands[] = "leg = :leg";
$parameters['leg'] = $leg;
}
//If you can't see lose_race, don't run stats on it
if (!permission_exists('xml_cdr_lose_race')) {
$sql_where_ands[] = "hangup_cause != 'LOSE_RACE'";
}
//if not admin or superadmin, only show own calls
if (!permission_exists('xml_cdr_domain')) {