mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 19:23:49 +00:00
committed by
FusionPBX
parent
745dc09353
commit
c940873d50
@@ -126,7 +126,10 @@ if (count($_POST) > 0 && $_POST["persistform"] != "1") {
|
||||
if ($username == '') { $msg_error = $text['message-required'].$text['label-username']; }
|
||||
if (permission_exists('user_edit') && $action == 'edit') {
|
||||
if ($username != $username_old && $username != '') {
|
||||
$sql = "select count(user_uuid) as num_rows from v_users where domain_uuid = '".$domain_uuid."' and username = '".$username."'";
|
||||
$sql = "select count(*) as num_rows from v_users where username = '".$username."'";
|
||||
if ($_SESSION["user"]["unique"]["text"] != "global"){
|
||||
$sql .= " and domain_uuid = '".$domain_uuid."'";
|
||||
}
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
|
||||
Reference in New Issue
Block a user