From cd34ed0527c49bf2bae4905186847f050f36ed63 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 11 Sep 2016 12:45:39 -0600 Subject: [PATCH] Update database.php --- core/authentication/resources/classes/plugins/database.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 22f4c66e14..9eb849a2e5 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -1,7 +1,7 @@ domain_uuid."' "; } $sql .= "and (user_enabled = 'true' or user_enabled is null) "; + //echo $sql."
\n"; + //echo "domain name: ".$this->domain_name; $prep_statement = $db->prepare(check_sql($sql)); if ($_SESSION["user"]["unique"]["text"] != "global") { $prep_statement->bindParam(':domain_uuid', $this->domain_uuid); @@ -67,7 +69,8 @@ class plugin_database { $user_authorized = false; if (is_array($result)) { foreach ($result as &$row) { - //get the domain uuid + + //get the domain uuid when users are unique globally if ($_SESSION["user"]["unique"]["text"] == "global" && $row["domain_uuid"] != $this->domain_uuid) { //set the domain_uuid $this->domain_uuid = $row["domain_uuid"];