mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Set the user_context on an ring_groups to the domain name.
This commit is contained in:
@@ -93,12 +93,7 @@ else {
|
|||||||
|
|
||||||
//set the context for users that are not in the superadmin group
|
//set the context for users that are not in the superadmin group
|
||||||
if (!if_group("superadmin")) {
|
if (!if_group("superadmin")) {
|
||||||
if (count($_SESSION["domains"]) > 1) {
|
$ring_group_context = $_SESSION['domain_name'];
|
||||||
$ring_group_context = $_SESSION['domain_name'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$ring_group_context = "default";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -380,12 +375,7 @@ else {
|
|||||||
|
|
||||||
//set the context for users that are not in the superadmin group
|
//set the context for users that are not in the superadmin group
|
||||||
if (strlen($ring_group_context) == 0) {
|
if (strlen($ring_group_context) == 0) {
|
||||||
if (count($_SESSION["domains"]) > 1) {
|
$ring_group_context = $_SESSION['domain_name'];
|
||||||
$ring_group_context = $_SESSION['domain_name'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$ring_group_context = "default";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//show the header
|
//show the header
|
||||||
|
|||||||
Reference in New Issue
Block a user