diff --git a/lib/mobilizon/users/users.ex b/lib/mobilizon/users/users.ex index 21bc20c9b..d4c02aa93 100644 --- a/lib/mobilizon/users/users.ex +++ b/lib/mobilizon/users/users.ex @@ -280,7 +280,7 @@ defmodule Mobilizon.Users do Counts users. """ @spec count_users :: integer - def count_users, do: Repo.one(from(u in User, select: count(u.id))) + def count_users, do: Repo.one(from(u in User, select: count(u.id), where: u.disabled == false)) @doc """ Gets a settings for an user.