Update the SQL query to add the alias

- Remove the redirect
This commit is contained in:
markjcrane
2025-11-04 18:11:23 -07:00
parent ac8f37cdd1
commit 923e044621

View File

@@ -524,7 +524,7 @@
$sql .= "left join v_contact_attachments as ca2 on u.contact_uuid = ca2.contact_uuid and ca2.attachment_primary = true "; $sql .= "left join v_contact_attachments as ca2 on u.contact_uuid = ca2.contact_uuid and ca2.attachment_primary = true ";
$sql .= "where u.user_uuid = :user_uuid "; $sql .= "where u.user_uuid = :user_uuid ";
if (!permission_exists('user_all')) { if (!permission_exists('user_all')) {
$sql .= "and domain_uuid = :domain_uuid "; $sql .= "and u.domain_uuid = :domain_uuid ";
$parameters['domain_uuid'] = $domain_uuid; $parameters['domain_uuid'] = $domain_uuid;
} }
$parameters['user_uuid'] = $user_uuid; $parameters['user_uuid'] = $user_uuid;
@@ -553,11 +553,6 @@
$attachment_filename = $row["attachment_filename"]; $attachment_filename = $row["attachment_filename"];
$attachment_content = $row["attachment_content"]; $attachment_content = $row["attachment_content"];
} }
else {
message::add($text['message-invalid_user'], 'negative', 7500);
header("Location: user_edit.php?id=".$_SESSION['user_uuid']);
exit;
}
unset($sql, $parameters, $row); unset($sql, $parameters, $row);
//get all language codes from database //get all language codes from database