mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update the SQL query to add the alias
- Remove the redirect
This commit is contained in:
@@ -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 .= "where u.user_uuid = :user_uuid ";
|
||||
if (!permission_exists('user_all')) {
|
||||
$sql .= "and domain_uuid = :domain_uuid ";
|
||||
$sql .= "and u.domain_uuid = :domain_uuid ";
|
||||
$parameters['domain_uuid'] = $domain_uuid;
|
||||
}
|
||||
$parameters['user_uuid'] = $user_uuid;
|
||||
@@ -553,11 +553,6 @@
|
||||
$attachment_filename = $row["attachment_filename"];
|
||||
$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);
|
||||
|
||||
//get all language codes from database
|
||||
|
||||
Reference in New Issue
Block a user