Update call_flow_edit.php

This commit is contained in:
FusionPBX 2016-10-05 18:40:47 -06:00 committed by GitHub
parent fbe490dfd4
commit c06c5fa5a8
1 changed files with 9 additions and 0 deletions

View File

@ -188,6 +188,11 @@
$array['call_flows'][] = $_POST;
$array['dialplans'][] = $dialplan;
//add the dialplan permission
$p = new permissions;
$p->add("dialplan_add", "temp");
$p->add("dialplan_edit", "temp");
//save to the data
$orm = new orm;
//$orm->name('call_flows');
@ -199,6 +204,10 @@
$orm->save($array);
$message = $orm->message;
//remove the temporary permission
$p->delete("dialplan_add", "temp");
$p->delete("dialplan_edit", "temp");
//debug info
//echo "<pre>";
//print_r($message);