mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-19 15:02:14 +00:00
Add ability to disable a user.
This commit is contained in:
@@ -69,6 +69,7 @@ session_start();
|
||||
$sql = "select * from v_users ";
|
||||
$sql .= "where domain_uuid=:domain_uuid ";
|
||||
$sql .= "and username=:username ";
|
||||
$sql .= "and (user_enabled = 'true' or user_enabled is null) ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->bindParam(':domain_uuid', $domain_uuid);
|
||||
$prep_statement->bindParam(':username', check_str($_REQUEST["username"]));
|
||||
|
||||
Reference in New Issue
Block a user