mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
CDR add permision to hide call center agent legs
Author: agree <ahrongreenberg@gmail.com>
This commit is contained in:
@@ -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_side') && $row['cc_side'] == "agent") {
|
||||
$content = '';
|
||||
}
|
||||
//show the leg b only to those with the permission
|
||||
if ($row['leg'] == 'a') {
|
||||
echo $content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user