Update call_flow_edit.php
This commit is contained in:
parent
fbe490dfd4
commit
c06c5fa5a8
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue