Skip to content

Commit a313ce4

Browse files
committed
Update stats_controller.ex
1 parent b4a9436 commit a313ce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plausible_web/controllers/stats_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule PlausibleWeb.StatsController do
22
use PlausibleWeb, :controller
33

4-
plug PlausibleWeb.AuthorizeSiteAccess when action in [:stats, :csv_export]
4+
plug PlausibleWeb.AuthorizeSiteAccess when action == :stats
55

66
def stats(%{assigns: %{site: %{domain: "all"} = site}} = conn, _params) do
77
conn

0 commit comments

Comments
 (0)