From a4ff19aaa810203a28a423b19891c2e3a535f6e3 Mon Sep 17 00:00:00 2001 From: Johannes Nickel Date: Thu, 9 Oct 2014 21:54:02 +0200 Subject: [PATCH] fixed: removed duplicate shown users in user list (user management) because seach is by role / group and the same users are returned multiple times. --- 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 75497aab0..b52a7f32c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -376,7 +376,7 @@ curl http://localhost/api/v1/users/2.json -v -u #{login}:#{password} -H "Content # return result render :json => { :assets => assets, - :user_ids => user_ids, + :user_ids => user_ids.uniq, } end