From 1b66868c9678748d4bfa699cb1ea59351a668517 Mon Sep 17 00:00:00 2001 From: Adrian Gruntkowski Date: Thu, 29 Aug 2024 14:58:35 +0200 Subject: [PATCH] Avoid refetching user session in `AuthorizeSiteAccess` plug --- lib/plausible_web/router.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plausible_web/router.ex b/lib/plausible_web/router.ex index 56bf8e5a064f9..a09eee27792c0 100644 --- a/lib/plausible_web/router.ex +++ b/lib/plausible_web/router.ex @@ -48,6 +48,7 @@ defmodule PlausibleWeb.Router do pipeline :internal_stats_api do plug :accepts, ["json"] plug :fetch_session + plug PlausibleWeb.AuthPlug plug PlausibleWeb.AuthorizeSiteAccess plug PlausibleWeb.Plugs.NoRobots end