Skip to content

Commit

Permalink
Avoid refetching user session in AuthorizeSiteAccess plug
Browse files Browse the repository at this point in the history
  • Loading branch information
zoldar committed Aug 29, 2024
1 parent a410af6 commit 1b66868
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plausible_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b66868

Please sign in to comment.