mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
separating status and hangup permissions (#6522)
* separating status and hangup permissions Creating a status permission so status can be displayed independently from hangup cause. The combination of status within the hangup permissions has confused some conversations with admins and superadmins. * separating status and hangup permissions Creating a status permission so status can be displayed independently from hangup cause. The combination of status within the hangup permissions has confused some conversations with admins and superadmins.
This commit is contained in:
@@ -97,7 +97,6 @@
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_search_hangup_cause";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_search_recording";
|
||||
@@ -184,10 +183,13 @@
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_mos";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_hangup_cause";
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_status";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_hangup_cause";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "xml_cdr_details";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
|
||||
@@ -597,12 +597,12 @@
|
||||
echo "<th class='center hide-md-dn' title=\"".$text['description-mos']."\">".$text['label-mos']."</th>\n";
|
||||
$col_count++;
|
||||
}
|
||||
if (permission_exists('xml_cdr_hangup_cause')) {
|
||||
echo "<th class='hide-sm-dn shrink'>".$text['label-hangup_cause']."</th>\n";
|
||||
if (permission_exists('xml_cdr_status')) {
|
||||
echo "<th class='hide-sm-dn shrink'>".$text['label-status']."</th>\n";
|
||||
$col_count++;
|
||||
}
|
||||
else {
|
||||
echo "<th>".$text['label-status']."</th>\n";
|
||||
if (permission_exists('xml_cdr_hangup_cause')) {
|
||||
echo "<th class='hide-sm-dn shrink'>".$text['label-hangup_cause']."</th>\n";
|
||||
$col_count++;
|
||||
}
|
||||
if (permission_exists('xml_cdr_details')) {
|
||||
@@ -806,14 +806,14 @@
|
||||
}
|
||||
$content .= " <td class='middle center hide-md-dn' ".$title.">".$value."</td>\n";
|
||||
}
|
||||
//hangup cause/call result
|
||||
//call result/status
|
||||
if (permission_exists("xml_cdr_status")) {
|
||||
$content .= " <td class='middle no-wrap hide-sm-dn'>".ucwords(escape($call_result))."</td>\n";
|
||||
}
|
||||
//hangup cause
|
||||
if (permission_exists('xml_cdr_hangup_cause')) {
|
||||
$content .= " <td class='middle no-wrap hide-sm-dn'><a href='".$list_row_url."'>".escape($hangup_cause)."</a></td>\n";
|
||||
}
|
||||
else {
|
||||
$content .= " <td class='middle no-wrap hide-sm-dn'>".ucwords(escape($call_result))."</td>\n";
|
||||
}
|
||||
|
||||
$content .= "</tr>\n";
|
||||
//show the leg b only to those with the permission
|
||||
if ($row['leg'] == 'a') {
|
||||
|
||||
Reference in New Issue
Block a user