From 0bbd26971ea077fd7de2f94c0cf2da34ede3c482 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 22 Mar 2015 03:27:42 +0000 Subject: [PATCH] Set the user_context on an ring_groups to the domain name. --- app/ring_groups/ring_group_edit.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index 8c430ae642..4b8c63ff9e 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -93,12 +93,7 @@ else { //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"; - } + $ring_group_context = $_SESSION['domain_name']; } } @@ -380,12 +375,7 @@ else { //set the context for users that are not in the superadmin group if (strlen($ring_group_context) == 0) { - if (count($_SESSION["domains"]) > 1) { - $ring_group_context = $_SESSION['domain_name']; - } - else { - $ring_group_context = "default"; - } + $ring_group_context = $_SESSION['domain_name']; } //show the header