mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix the ring group context.
This commit is contained in:
@@ -110,16 +110,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
//set the context for users that are not in the superadmin group
|
||||
if (!if_group("superadmin")) {
|
||||
if (count($_SESSION["domains"]) > 1) {
|
||||
$ring_group_context = $_SESSION['domain_name'];
|
||||
}
|
||||
else {
|
||||
$ring_group_context = "default";
|
||||
}
|
||||
}
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add") {
|
||||
@@ -314,8 +304,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
//set defaults
|
||||
if (strlen($ring_group_timeout_sec) == 0) { $ring_group_timeout_sec = '30'; }
|
||||
if (strlen($ring_group_enabled) == 0) { $ring_group_enabled = 'true'; }
|
||||
if (if_group("superadmin")) {
|
||||
if (strlen($ring_group_context) == 0) {
|
||||
|
||||
//set the context for users that are not in the superadmin group
|
||||
if (strlen($ring_group_context) == 0) {
|
||||
if (!if_group("superadmin")) {
|
||||
if (count($_SESSION["domains"]) > 1) {
|
||||
$ring_group_context = $_SESSION['domain_name'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user