Set the user_context on an call flows to the domain name for single tenant.
This commit is contained in:
parent
0bbd26971e
commit
80d69c28f7
|
|
@ -75,13 +75,8 @@ 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) {
|
|
||||||
$call_flow_context = $_SESSION['domain_name'];
|
$call_flow_context = $_SESSION['domain_name'];
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$call_flow_context = "default";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -406,13 +401,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
//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($call_flow_context) == 0) {
|
if (strlen($call_flow_context) == 0) {
|
||||||
if (count($_SESSION["domains"]) > 1) {
|
|
||||||
$call_flow_context = $_SESSION['domain_name'];
|
$call_flow_context = $_SESSION['domain_name'];
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$call_flow_context = "default";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//show the header
|
//show the header
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue