Update ivr_menu.php

This commit is contained in:
FusionPBX 2016-09-12 15:51:29 -06:00 committed by GitHub
parent 639516828b
commit 89a5f06bb7
1 changed files with 13 additions and 0 deletions

View File

@ -450,6 +450,13 @@ include "root.php";
//echo "</pre>\n";
//exit;
//add the dialplan permission
$p = new permissions;
$p->add("dialplan_add", 'temp');
$p->add("dialplan_detail_add", 'temp');
$p->add("dialplan_edit", 'temp');
$p->add("dialplan_detail_edit", 'temp');
//save the dialplan
$orm = new orm;
$orm->name('dialplans');
@ -465,6 +472,12 @@ include "root.php";
//echo "</pre>\n";
//exit;
//remove the temporary permission
$p->delete("dialplan_add", 'temp');
$p->delete("dialplan_detail_add", 'temp');
$p->delete("dialplan_edit", 'temp');
$p->delete("dialplan_detail_edit", 'temp');
//synchronize the xml config
save_dialplan_xml();