change max open reports to 3

This commit is contained in:
byte[] 2020-06-25 11:12:05 -04:00
parent d0e0f3dc00
commit a1f2ac5083

View file

@ -80,7 +80,7 @@ defmodule PhilomenaWeb.ReportController do
|> where([r], r.state in ["open", "in_progress"])
|> Repo.aggregate(:count, :id)
reports_open >= 5
reports_open >= 3
end
defp too_many_reports_ip?(conn) do
@ -92,7 +92,7 @@ defmodule PhilomenaWeb.ReportController do
|> where([r], r.state in ["open", "in_progress"])
|> Repo.aggregate(:count, :id)
reports_open >= 5
reports_open >= 3
end
defp redirect_path(_conn, nil), do: "/"