diff options
author | Brian Neel <brian@gitlab.com> | 2017-08-28 18:32:11 -0400 |
---|---|---|
committer | Brian Neel <brian@gitlab.com> | 2017-08-28 18:32:11 -0400 |
commit | 17c34b20ba476a9224aee84020300b64d75ed176 (patch) | |
tree | bc98d232b7827c95060da755227e9ef5ac25af13 | |
parent | 4b8ff285594fde6d5a07ab15d80a4324a81747be (diff) | |
download | gitlab-ce-api-admin-search.tar.gz |
Use users.admins instead of where()api-admin-search
-rw-r--r-- | app/finders/users_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/users_finder.rb b/app/finders/users_finder.rb index b2a002c701c..ce0df387eb1 100644 --- a/app/finders/users_finder.rb +++ b/app/finders/users_finder.rb @@ -80,6 +80,6 @@ class UsersFinder def by_admin(users) return users unless params[:admin] - users.where(admin: params[:admin]) + users.admins end end |