Add follow me prompt permission and remove follow me global call prompt
This commit is contained in:
parent
62724e1be3
commit
fc74cdaba8
|
|
@ -118,7 +118,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$forward_all_destination = check_str($_POST["forward_all_destination"]);
|
||||
$cid_name_prefix = check_str($_POST["cid_name_prefix"]);
|
||||
$cid_number_prefix = check_str($_POST["cid_number_prefix"]);
|
||||
$call_prompt = check_str($_POST["call_prompt"]);
|
||||
$follow_me_enabled = check_str($_POST["follow_me_enabled"]);
|
||||
|
||||
$destination_data_1 = check_str($_POST["destination_data_1"]);
|
||||
|
|
@ -181,7 +180,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
//if (strlen($destination_timeout_6) == 0) { $msg .= "Please provide: sec<br>\n"; }
|
||||
//if (strlen($destination_data_7) == 0) { $msg .= "Please provide: 7th Number<br>\n"; }
|
||||
//if (strlen($destination_timeout_7) == 0) { $msg .= "Please provide: sec<br>\n"; }
|
||||
//if (strlen($hunt_group_call_prompt) == 0) { $msg .= "Please provide: call prompt<br>\n"; }
|
||||
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "resources/header.php";
|
||||
require_once "resources/persist_form_var.php";
|
||||
|
|
@ -256,7 +254,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$follow_me->db_type = $db_type;
|
||||
$follow_me->cid_name_prefix = $cid_name_prefix;
|
||||
$follow_me->cid_number_prefix = $cid_number_prefix;
|
||||
$follow_me->call_prompt = $call_prompt;
|
||||
$follow_me->follow_me_enabled = $follow_me_enabled;
|
||||
|
||||
$follow_me->destination_data_1 = $destination_data_1;
|
||||
|
|
@ -365,7 +362,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
foreach ($result as &$row) {
|
||||
$cid_name_prefix = $row["cid_name_prefix"];
|
||||
$cid_number_prefix = $row["cid_number_prefix"];
|
||||
$call_prompt = $row["call_prompt"];
|
||||
$follow_me_enabled = $row["follow_me_enabled"];
|
||||
|
||||
$sql = "select * from v_follow_me_destinations ";
|
||||
|
|
@ -693,32 +689,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
if (permission_exists('follow_me_call_prompt')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-call-prompt'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo "<select class='formfld' name='call_prompt'>\n";
|
||||
if ($call_prompt == "false") {
|
||||
echo "<option value='false' selected='selected'>".$text['check-false']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo "<option value='false'>".$text['check-false']."</option>\n";
|
||||
}
|
||||
if ($call_prompt == "true") {
|
||||
echo "<option value='true' selected='selected'>".$text['check-true']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo "<option value='true'>".$text['check-true']."</option>\n";
|
||||
}
|
||||
echo "</select>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-call-prompt']." \n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='2'>\n";
|
||||
echo " <br />\n";
|
||||
|
|
|
|||
|
|
@ -81,10 +81,17 @@
|
|||
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "follow_me_cid_name_prefix";
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "follow_me_cid_number_prefix";
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "follow_me_call_prompt";
|
||||
$apps[$x]['permissions'][$y]['name'] = "follow_me_prompt";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
||||
$y++;
|
||||
|
||||
//schema details
|
||||
|
|
|
|||
Loading…
Reference in New Issue