Active users must be confirmed
This commit is contained in:
parent
3802718f80
commit
e759579f97
|
@ -139,6 +139,7 @@ defp compose_query({:external, _}, query), do: location_query(query, false)
|
||||||
defp compose_query({:active, _}, query) do
|
defp compose_query({:active, _}, query) do
|
||||||
User.restrict_deactivated(query)
|
User.restrict_deactivated(query)
|
||||||
|> where([u], u.is_approved == true)
|
|> where([u], u.is_approved == true)
|
||||||
|
|> where([u], u.is_confirmed == true)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp compose_query({:legacy_active, _}, query) do
|
defp compose_query({:legacy_active, _}, query) do
|
||||||
|
|
Loading…
Reference in a new issue