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]['name'] = "ivr_menus_other_destinations";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||||
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "ivr_menu_audio_edit";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
|
||||||
//default settings
|
//default settings
|
||||||
$y=0;
|
$y=0;
|
||||||
|
|
@ -495,3 +498,4 @@
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -678,7 +678,7 @@
|
||||||
echo " }\n";
|
echo " }\n";
|
||||||
echo "</script>\n";
|
echo "</script>\n";
|
||||||
}
|
}
|
||||||
if (if_group("superadmin")) {
|
if (permission_exists('ivr_menu_audio_edit')) {
|
||||||
echo "<script type='text/javascript' language='JavaScript'>\n";
|
echo "<script type='text/javascript' language='JavaScript'>\n";
|
||||||
echo " var objs;\n";
|
echo " var objs;\n";
|
||||||
echo " function toggle_select_input(obj, instance_id){\n";
|
echo " function toggle_select_input(obj, instance_id){\n";
|
||||||
|
|
@ -873,12 +873,12 @@
|
||||||
echo "</optgroup>\n";
|
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";
|
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||||
}
|
}
|
||||||
unset($selected);
|
unset($selected);
|
||||||
echo " </select>\n";
|
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='◁'>";
|
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))) {
|
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||||
|
|
@ -946,12 +946,12 @@
|
||||||
echo "</optgroup>\n";
|
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";
|
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||||
}
|
}
|
||||||
unset($selected);
|
unset($selected);
|
||||||
echo " </select>\n";
|
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='◁'>";
|
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))) {
|
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||||
|
|
@ -1256,12 +1256,12 @@
|
||||||
echo "</optgroup>\n";
|
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";
|
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||||
}
|
}
|
||||||
unset($selected);
|
unset($selected);
|
||||||
echo " </select>\n";
|
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='◁'>";
|
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))) {
|
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||||
|
|
@ -1329,12 +1329,12 @@
|
||||||
echo "</optgroup>\n";
|
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";
|
echo " <option value='".escape($instance_value)."' selected='selected'>".escape($instance_value)."</option>\n";
|
||||||
}
|
}
|
||||||
unset($selected);
|
unset($selected);
|
||||||
echo " </select>\n";
|
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='◁'>";
|
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))) {
|
if ((permission_exists('recording_play') || permission_exists('recording_download')) && (!empty($playable) || empty($instance_value))) {
|
||||||
|
|
@ -1549,4 +1549,5 @@
|
||||||
|
|
||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue