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'] = "";
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -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