Commit 358fd62c authored by Markus Koller's avatar Markus Koller 🦊

Don't show duplicate users

parent 079372fa
Pipeline #18906 passed with stage
in 37 minutes and 49 seconds
......@@ -5,7 +5,7 @@ class UsersController < ApplicationController
def index
authorize User
@q = User.ransack(params[:q])
@q = User.distinct.ransack(params[:q])
@q.sorts = ['created_at desc'] if @q.sorts.empty?
@users = @q.result
respond_to do |format|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment