This commit is contained in:
Maxim Filippov 2019-03-05 02:11:15 +03:00
parent 02359d686c
commit 2d30fc279f
2 changed files with 1 additions and 16 deletions

View file

@ -9,7 +9,7 @@ Authentication is required and the user must be an admin.
- Method `GET`
- Params:
- `query`: **string** *optional* search term
- `only_local`: **bool** *optional* whether to return only local users
- `local_only`: **bool** *optional* whether to return only local users
- `page`: **integer** *optional* page number
- `page_size`: **integer** *optional* number of users per page (default is `50`)
- Response:

View file

@ -63,21 +63,6 @@ def untag_users(conn, %{"nicknames" => nicknames, "tags" => tags}) do
do: json_response(conn, :no_content, "")
end
# def list_users(conn, params) do
# {page, page_size} = page_params(params)
# with {:ok, users, count} <- User.all_for_admin(page, page_size),
# do:
# conn
# |> json(
# AccountView.render("index.json",
# users: users,
# count: count,
# page_size: page_size
# )
# )
# end
def list_users(%{assigns: %{user: admin}} = conn, params) do
{page, page_size} = page_params(params)