mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Improve the security on when adding inbound dialplans.
This commit is contained in:
@@ -678,7 +678,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
if (permission_exists("inbound_route_edit") && $action == "advanced") {
|
if (permission_exists("inbound_route_edit") && $action == "advanced" && if_group("superadmin")) {
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$text['label-condition_1'].":\n";
|
echo " ".$text['label-condition_1'].":\n";
|
||||||
@@ -974,9 +974,11 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo " <td colspan='5' align='right'>\n";
|
echo " <td colspan='5' align='right'>\n";
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
echo " <input type='hidden' name='dialplan_uuid' value='$dialplan_uuid'>\n";
|
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";
|
||||||
}
|
}
|
||||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user