Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Do not allow logged out users to access crm
Uku Taht97df923c7f9e
diff --git a/lib/plausible_web/plugs/crm_auth_plug.ex b/lib/plausible_web/plugs/crm_auth_plug.exindex 7f28539981..bfffad0922 100644--- a/lib/plausible_web/plugs/crm_auth_plug.ex+++ b/lib/plausible_web/plugs/crm_auth_plug.ex@@ -9,7 +9,7 @@ defmodule PlausibleWeb.CRMAuthPlug dodef call(conn, _opts) docase get_session(conn, :current_user_id) donil ->- conn+ conn |> send_resp(403, "Not allowed") |> haltid ->user = Repo.get_by(Plausible.Auth.User, id: id)