Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

hide billings and upgrade from ce (#4897)

ruslandoga1fa3f98604d7
diff --git a/lib/plausible_web/templates/layout/settings.html.heex b/lib/plausible_web/templates/layout/settings.html.heex
index e4411f1c05..9862f0a683 100644
--- a/lib/plausible_web/templates/layout/settings.html.heex
+++ b/lib/plausible_web/templates/layout/settings.html.heex
@@ -6,7 +6,14 @@
%{key: "Invoices", value: "billing/invoices", icon: :banknotes},
%{key: "API Keys", value: "api-keys", icon: :key},
%{key: "Danger Zone", value: "danger-zone", icon: :exclamation_triangle}
- ] %>
+ ]
+
+ options =
+ if Plausible.ee?() do
+ options
+ else
+ Enum.reject(options, fn option -> String.contains?(option.value, "billing") end)
+ end %>
<div class="container pt-6">
<.styled_link class="text-indigo-600 font-bold text-sm" href="/sites">