Update ring_group_edit.php
This commit is contained in:
parent
0391693ade
commit
fbe490dfd4
|
|
@ -302,7 +302,12 @@
|
||||||
//prepare the array
|
//prepare the array
|
||||||
$array['ring_groups'][] = $_POST;
|
$array['ring_groups'][] = $_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('ring_groups');
|
//$orm->name('ring_groups');
|
||||||
|
|
@ -313,6 +318,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");
|
||||||
}
|
}
|
||||||
|
|
||||||
//save the xml
|
//save the xml
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue