mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-31 09:33:48 +00:00
Set the user context to the domain name.
This commit is contained in:
@@ -304,12 +304,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
else {
|
||||
//if the user_context was not set then set the default value
|
||||
if (strlen($user_context) == 0) {
|
||||
if (count($_SESSION["domains"]) > 1) {
|
||||
$user_context = $_SESSION['domain_name'];
|
||||
}
|
||||
else {
|
||||
$user_context = "default";
|
||||
}
|
||||
$user_context = $_SESSION['domain_name'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user