diff --git a/lib/msf/core/web_services/servlet/user_servlet.rb b/lib/msf/core/web_services/servlet/user_servlet.rb index 17dda26068..89641cc37f 100644 --- a/lib/msf/core/web_services/servlet/user_servlet.rb +++ b/lib/msf/core/web_services/servlet/user_servlet.rb @@ -51,8 +51,6 @@ module UserServlet tmp_params = sanitize_params(params) opts[:id] = tmp_params[:id] if tmp_params[:id] data = get_db.update_user(opts) - # Only return the single object if the id parameter is present - data = data.first if !sanitized_params[:id].nil? && data.count == 1 set_json_data_response(response: data) rescue => e print_error_and_create_response(error: e, message: 'There was an error updating the user:', code: 500)