Update conference_center_edit.php
This commit is contained in:
parent
08dc79d260
commit
e1c770e2db
|
|
@ -132,6 +132,11 @@
|
|||
$array['conference_centers'][] = $_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('conference_centers');
|
||||
|
|
@ -143,6 +148,10 @@
|
|||
$orm->save($array);
|
||||
$message = $orm->message;
|
||||
|
||||
//remove the temporary permission
|
||||
$p->delete("dialplan_add", "temp");
|
||||
$p->delete("dialplan_edit", "temp");
|
||||
|
||||
//debug information
|
||||
//echo "<pre>\n";
|
||||
//print_r($message);
|
||||
|
|
|
|||
Loading…
Reference in New Issue