Add ability to disable a user.

This commit is contained in:
Mark Crane
2012-08-10 15:53:02 +00:00
parent 7a90a95857
commit 84d5b7b3df
23 changed files with 111 additions and 38 deletions
+1 -1
View File
@@ -570,7 +570,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$onchange = "document.getElementById('hunt_group_user_list').value += document.getElementById('username').value + '\\n';";
$table_name = 'v_users'; $field_name = 'username'; $field_current_value = ''; $sql_where_optional = "where domain_uuid = '$domain_uuid' ";
$table_name = 'v_users'; $field_name = 'username'; $field_current_value = ''; $sql_where_optional = "where domain_uuid = '$domain_uuid' and user_enabled = 'true' ";
echo html_select_on_change($db, $table_name, $field_name, $sql_where_optional, $field_current_value, $onchange);
echo "<br />\n";
echo "Use the select list to add users to the user list. This will assign users to this extension.\n";