mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add permission: inbound_route_advanced
This commit is contained in:
@@ -44,6 +44,9 @@
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'inbound_route_advanced';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'inbound_route_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ require_once "resources/paging.php";
|
||||
unset ($prep_statement);
|
||||
}
|
||||
|
||||
if (if_group("superadmin") && $action == "advanced") {
|
||||
if (permission_exists("inbound_route_advanced") && $action == "advanced") {
|
||||
//allow users in the superadmin group advanced control
|
||||
}
|
||||
else {
|
||||
@@ -643,11 +643,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo " </strong></span></span>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td align='right'>\n";
|
||||
if (permission_exists("inbound_route_edit") && $action == "advanced") {
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-basic']."' onclick=\"window.location='dialplan_inbound_add.php?action=basic'\" value='".$text['button-basic']."'>\n";
|
||||
}
|
||||
else {
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-advanced']."' onclick=\"window.location='dialplan_inbound_add.php?action=advanced'\" value='".$text['button-advanced']."'>\n";
|
||||
if (permission_exists("inbound_route_advanced")) {
|
||||
if (permission_exists("inbound_route_edit") && $action == "advanced") {
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-basic']."' onclick=\"window.location='dialplan_inbound_add.php?action=basic'\" value='".$text['button-basic']."'>\n";
|
||||
}
|
||||
else {
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-advanced']."' onclick=\"window.location='dialplan_inbound_add.php?action=advanced'\" value='".$text['button-advanced']."'>\n";
|
||||
}
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4'\" value='".$text['button-back']."'>\n";
|
||||
echo " </td>\n";
|
||||
@@ -678,7 +680,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if (permission_exists("inbound_route_edit") && $action == "advanced" && if_group("superadmin")) {
|
||||
if (permission_exists("inbound_route_edit") && $action == "advanced" && permission_exists("inbound_route_advanced")) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-condition_1'].":\n";
|
||||
|
||||
Reference in New Issue
Block a user