Show only undeleted users in user select input fields (PR #486)

This commit is contained in:
Patrick Gansterer 2017-08-21 11:27:02 +02:00 committed by wvengen
parent 8798b886db
commit 329ac66cf1
1 changed files with 1 additions and 1 deletions

View File

@ -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