From 329ac66cf1bea4fb775eafdc492923b47bbee7b5 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Mon, 21 Aug 2017 11:27:02 +0200 Subject: [PATCH] Show only undeleted users in user select input fields (PR #486) --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 51ca228f..f323b846 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2,7 +2,7 @@ class UsersController < ApplicationController # Currently used to display users nick and ids for autocomplete def index - @users = User.natural_search(params[:q]) + @users = User.undeleted.natural_search(params[:q]) respond_to do |format| format.json { render :json => @users.map(&:token_attributes) } end