Skip to content
Snippets Groups Projects
Commit 3b42c267 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Dont show blocked users in autocomplete

parent 07a88d66
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -24,6 +24,7 @@ $ ->
data: (term, page) ->
search: term # search term
per_page: 10
active: true
private_token: gon.api_token
 
results: (data, page) -> # parse the results into the format expected by Select2.
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment