Dont show blocked users in autocomplete

This commit is contained in:
Dmitriy Zaporozhets 2013-03-19 18:07:14 +02:00
parent 07a88d6699
commit 3b42c267a6
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@ module Gitlab
# GET /users
get do
@users = User.scoped
@users = @users.active if params[:active].present?
@users = @users.search(params[:search]) if params[:search].present?
present @users, with: Entities::User
end