Browse Source

Fix a problem when a user is disabled under accounts -> user accounts the user details would no longer show correctly.

Mark Crane 12 năm trước cách đây
mục cha
commit
a7d15bbc9e
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      core/users/usersupdate.php

+ 1 - 3
core/users/usersupdate.php

@@ -57,7 +57,6 @@ else {
 	$sql = "select * from v_users ";
 	$sql .= "where domain_uuid = '$domain_uuid' ";
 	$sql .= "and user_uuid = '$user_uuid' ";
-	$sql .= "and user_enabled = 'true' ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement->execute();
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
@@ -307,7 +306,6 @@ else {
 		$sql .= "where domain_uuid = '$domain_uuid' ";
 		$sql .= "and username = '$username' ";
 	}
-	$sql .= "and user_enabled = 'true' ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement->execute();
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
@@ -317,9 +315,9 @@ else {
 			$username = $row["username"];
 		}
 		$password = $row["password"];
+		$user_enabled = $row["user_enabled"];
 		$contact_uuid = $row["contact_uuid"];
 		$user_status = $row["user_status"];
-		break; //limit to 1 row
 	}
 
 	//get the groups the user is a member of