From 86fa97e41ad3bf8aa3a7f9f3f3f3070c84a3c760 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 30 Apr 2015 01:03:55 +0000 Subject: [PATCH] Add the sub table dialplan destination permission. --- app/destinations/destination_edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index ee3fcfcae0..7ce88dc285 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -375,10 +375,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { } //add the dialplan permission - $permission = "dialplan_edit"; $p = new permissions; - $p->add($permission, 'temp'); - + $p->add("dialplan_edit", 'temp'); + $p->add("dialplan_detail_edit", 'temp'); //save the dialplan $orm = new orm; $orm->name('dialplans'); @@ -389,7 +388,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $dialplan_response = $orm->message; //remove the temporary permission - $p->delete($permission, 'temp'); + $p->delete("dialplan_edit", 'temp'); + $p->delete("dialplan_detail_edit", 'temp'); //synchronize the xml config save_dialplan_xml();