Update database.php
This commit is contained in:
parent
7febaf05f2
commit
999eee3ebd
|
|
@ -52,6 +52,8 @@ class plugin_database {
|
||||||
//$sql .= "and domain_uuid='".$this->domain_uuid."' ";
|
//$sql .= "and domain_uuid='".$this->domain_uuid."' ";
|
||||||
}
|
}
|
||||||
$sql .= "and (user_enabled = 'true' or user_enabled is null) ";
|
$sql .= "and (user_enabled = 'true' or user_enabled is null) ";
|
||||||
|
//echo $sql."<br />\n";
|
||||||
|
//echo "domain name: ".$this->domain_name;
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($_SESSION["user"]["unique"]["text"] != "global") {
|
if ($_SESSION["user"]["unique"]["text"] != "global") {
|
||||||
$prep_statement->bindParam(':domain_uuid', $this->domain_uuid);
|
$prep_statement->bindParam(':domain_uuid', $this->domain_uuid);
|
||||||
|
|
@ -67,7 +69,8 @@ class plugin_database {
|
||||||
$user_authorized = false;
|
$user_authorized = false;
|
||||||
if (is_array($result)) {
|
if (is_array($result)) {
|
||||||
foreach ($result as &$row) {
|
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) {
|
if ($_SESSION["user"]["unique"]["text"] == "global" && $row["domain_uuid"] != $this->domain_uuid) {
|
||||||
//set the domain_uuid
|
//set the domain_uuid
|
||||||
$this->domain_uuid = $row["domain_uuid"];
|
$this->domain_uuid = $row["domain_uuid"];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue