mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update conference_center_edit.php
This commit is contained in:
@@ -132,6 +132,11 @@
|
|||||||
$array['conference_centers'][] = $_POST;
|
$array['conference_centers'][] = $_POST;
|
||||||
$array['dialplans'][] = $dialplan;
|
$array['dialplans'][] = $dialplan;
|
||||||
|
|
||||||
|
//add the dialplan permission
|
||||||
|
$p = new permissions;
|
||||||
|
$p->add("dialplan_add", "temp");
|
||||||
|
$p->add("dialplan_edit", "temp");
|
||||||
|
|
||||||
//save to the data
|
//save to the data
|
||||||
$orm = new orm;
|
$orm = new orm;
|
||||||
//$orm->name('conference_centers');
|
//$orm->name('conference_centers');
|
||||||
@@ -143,6 +148,10 @@
|
|||||||
$orm->save($array);
|
$orm->save($array);
|
||||||
$message = $orm->message;
|
$message = $orm->message;
|
||||||
|
|
||||||
|
//remove the temporary permission
|
||||||
|
$p->delete("dialplan_add", "temp");
|
||||||
|
$p->delete("dialplan_edit", "temp");
|
||||||
|
|
||||||
//debug information
|
//debug information
|
||||||
//echo "<pre>\n";
|
//echo "<pre>\n";
|
||||||
//print_r($message);
|
//print_r($message);
|
||||||
|
|||||||
Reference in New Issue
Block a user