Set the user_context on an ring_groups to the domain name.

This commit is contained in:
Mark Crane
2015-03-22 03:27:42 +00:00
parent f08e4be71b
commit 0bbd26971e
-10
View File
@@ -93,13 +93,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) {
$ring_group_context = $_SESSION['domain_name']; $ring_group_context = $_SESSION['domain_name'];
} }
else {
$ring_group_context = "default";
}
}
} }
//assign the user //assign the user
@@ -380,13 +375,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 (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
require_once "resources/header.php"; require_once "resources/header.php";