From 457007a77376e73aeec2b7b253f51f76232a3359 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 14 Oct 2016 07:42:01 -0600 Subject: [PATCH] Update extension_edit.php Add accountcode to extensions. --- app/extensions/extension_edit.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 6fe6566944..f43ec153d7 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -79,9 +79,7 @@ $password = check_str($_POST["password"]); // server verification on account code - if (if_group("superadmin")) { - $accountcode = $_POST["accountcode"]; - } + $accountcode = $_POST["accountcode"]; $effective_caller_id_name = check_str($_POST["effective_caller_id_name"]); $effective_caller_id_number = check_str($_POST["effective_caller_id_number"]); @@ -914,6 +912,19 @@ echo "\n"; } + if (if_group("superadmin") || if_group("admin")) { + echo "\n"; + echo "\n"; + echo " ".$text['label-accountcode']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo " ".$text['description-accountcode']."\n"; + echo "\n"; + echo "\n"; + } + if (permission_exists('device_edit') && $action == "update") { if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/devices')) { echo "\n";