Fix the inbound route save button.

This commit is contained in:
Mark Crane
2013-08-28 06:00:28 +00:00
parent 10d123eecd
commit 7779089a9e

View File

@@ -975,12 +975,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo " <td colspan='5' align='right'>\n";
if ($action == "update") {
if ($action == "update" && if_group("superadmin")) {
echo " <input type='hidden' name='dialplan_uuid' value='$dialplan_uuid'>\n";
}
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
if ($action == "update" && permission_exists("inbound_route_edit")) {
echo " <input type='hidden' name='dialplan_uuid' value='$dialplan_uuid'>\n";
}
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo "</tr>";
@@ -992,7 +990,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<br><br>";
//include the footer