mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Merge pull request #5720 from greenbea/patch-4
CDR add permision to hide call center agent legs
This commit is contained in:
@@ -197,6 +197,9 @@
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_lose_race";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_cc_agent_leg";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_archive";
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
|
||||
@@ -820,10 +820,14 @@
|
||||
|
||||
$content .= "</tr>\n";
|
||||
|
||||
//show the leg b only to those with the permission
|
||||
if (!permission_exists('xml_cdr_lose_race') && $row['hangup_cause'] == 'LOSE_RACE') {
|
||||
$content = '';
|
||||
}
|
||||
//show agent originated legs only to those with the permission
|
||||
if (!permission_exists('xml_cdr_cc_agent_leg') && $row['cc_side'] == "agent") {
|
||||
$content = '';
|
||||
}
|
||||
//show the leg b only to those with the permission
|
||||
if ($row['leg'] == 'a') {
|
||||
echo $content;
|
||||
}
|
||||
|
||||
@@ -242,6 +242,7 @@
|
||||
$sql .= "c.source_number, \n";
|
||||
$sql .= "c.destination_number, \n";
|
||||
$sql .= "c.leg, \n";
|
||||
$sql .= "c.cc_side, \n";
|
||||
//$sql .= "(c.xml is not null or c.json is not null) as raw_data_exists, \n";
|
||||
//$sql .= "c.json, \n";
|
||||
if (is_array($_SESSION['cdr']['field'])) {
|
||||
|
||||
Reference in New Issue
Block a user