Add new permission ivr_menu_audio_edit
This commit is contained in:
parent
9afb69dbda
commit
81fbd31524
|
|
@ -132,6 +132,9 @@
|
|||
$apps[$x]['permissions'][$y]['name'] = "ivr_menus_other_destinations";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "ivr_menu_audio_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
|
||||
//default settings
|
||||
$y=0;
|
||||
|
|
@ -495,3 +498,4 @@
|
|||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
$domain_uuid = $_SESSION['domain_uuid'];
|
||||
}
|
||||
|
||||
//if the user doesn't have the correct permission then
|
||||
//if the user doesn't have the correct permission then
|
||||
//override domain_uuid and ivr_menu_context values
|
||||
if ($action == 'update' && is_uuid($ivr_menu_uuid)) {
|
||||
$sql = "select * from v_ivr_menus ";
|
||||
|
|
@ -521,7 +521,7 @@
|
|||
$ivr_menu_voice = $ivr_menu_voice ?? '';
|
||||
$select_style = $select_style ?? '';
|
||||
$onkeyup = $onkeyup ?? '';
|
||||
|
||||
|
||||
//get the ivr menu options
|
||||
$sql = "select * from v_ivr_menu_options ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
|
|
@ -583,7 +583,7 @@
|
|||
$ivr_menu_inter_digit_timeout = $_SESSION['ivr_menu']['inter_digit_timeout']['numeric'];
|
||||
}
|
||||
else {
|
||||
$ivr_menu_inter_digit_timeout = '2000';
|
||||
$ivr_menu_inter_digit_timeout = '2000';
|
||||
}
|
||||
}
|
||||
if (empty($ivr_menu_max_failures)) {
|
||||
|
|
@ -591,7 +591,7 @@
|
|||
$ivr_menu_max_failures = $_SESSION['ivr_menu']['max_failures']['numeric'];
|
||||
}
|
||||
else {
|
||||
$ivr_menu_max_failures = '1';
|
||||
$ivr_menu_max_failures = '1';
|
||||
}
|
||||
}
|
||||
if (empty($ivr_menu_max_timeouts)) {
|
||||
|
|
@ -599,7 +599,7 @@
|
|||
$ivr_menu_max_timeouts = $_SESSION['ivr_menu']['max_timeouts']['numeric'];
|
||||
}
|
||||
else {
|
||||
$ivr_menu_max_timeouts = '1';
|
||||
$ivr_menu_max_timeouts = '1';
|
||||
}
|
||||
}
|
||||
if (empty($ivr_menu_digit_len)) { $ivr_menu_digit_len = '5'; }
|
||||
|
|
@ -678,7 +678,7 @@
|
|||
echo " }\n";
|
||||
echo "</script>\n";
|
||||
}
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists('ivr_menu_audio_edit')) {
|
||||
echo "<script type='text/javascript' language='JavaScript'>\n";
|
||||
echo " var objs;\n";
|
||||
echo " function toggle_select_input(obj, instance_id){\n";
|
||||
|
|
@ -873,12 +873,12 @@
|
|||
echo "</optgroup>\n";
|
||||
}
|
||||
}
|
||||
if (if_group("superadmin") && !empty($instance_value) && !$found) {
|
||||
if (permission_exists('ivr_menu_audio_edit') && !empty($instance_value) && !$found) {
|
||||
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||
}
|
||||
unset($selected);
|
||||
echo " </select>\n";
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists('ivr_menu_audio_edit')) {
|
||||
echo "<input type='button' id='btn_select_to_input_".$instance_id."' class='btn' name='' alt='back' onclick='toggle_select_input(document.getElementById(\"".$instance_id."\"), \"".$instance_id."\"); this.style.visibility=\"hidden\";' value='◁'>";
|
||||
}
|
||||
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||
|
|
@ -946,12 +946,12 @@
|
|||
echo "</optgroup>\n";
|
||||
}
|
||||
}
|
||||
if (if_group("superadmin") && !empty($instance_value) && !$found) {
|
||||
if (permission_exists('ivr_menu_audio_edit') && !empty($instance_value) && !$found) {
|
||||
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||
}
|
||||
unset($selected);
|
||||
echo " </select>\n";
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists('ivr_menu_audio_edit')) {
|
||||
echo "<input type='button' id='btn_select_to_input_".$instance_id."' class='btn' name='' alt='back' onclick='toggle_select_input(document.getElementById(\"".$instance_id."\"), \"".$instance_id."\"); this.style.visibility=\"hidden\";' value='◁'>";
|
||||
}
|
||||
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||
|
|
@ -1256,12 +1256,12 @@
|
|||
echo "</optgroup>\n";
|
||||
}
|
||||
}
|
||||
if (if_group("superadmin") && !empty($instance_value) && !$found) {
|
||||
if (permission_exists('ivr_menu_audio_edit') && !empty($instance_value) && !$found) {
|
||||
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||
}
|
||||
unset($selected);
|
||||
echo " </select>\n";
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists('ivr_menu_audio_edit')) {
|
||||
echo "<input type='button' id='btn_select_to_input_".$instance_id."' class='btn' name='' alt='back' onclick='toggle_select_input(document.getElementById(\"".$instance_id."\"), \"".$instance_id."\"); this.style.visibility=\"hidden\";' value='◁'>";
|
||||
}
|
||||
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||
|
|
@ -1329,12 +1329,12 @@
|
|||
echo "</optgroup>\n";
|
||||
}
|
||||
}
|
||||
if (if_group("superadmin") && !empty($instance_value) && !$found) {
|
||||
if (permission_exists('ivr_menu_audio_edit') && !empty($instance_value) && !$found) {
|
||||
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||
}
|
||||
unset($selected);
|
||||
echo " </select>\n";
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists('ivr_menu_audio_edit')) {
|
||||
echo "<input type='button' id='btn_select_to_input_".$instance_id."' class='btn' name='' alt='back' onclick='toggle_select_input(document.getElementById(\"".$instance_id."\"), \"".$instance_id."\"); this.style.visibility=\"hidden\";' value='◁'>";
|
||||
}
|
||||
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||
|
|
@ -1549,4 +1549,5 @@
|
|||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue