require superuser for livedashboard

This commit is contained in:
Graham McIntire 2026-01-25 16:17:25 -06:00
parent 7b6298f5dc
commit 7cf59a88ab
No known key found for this signature in database

View file

@ -103,7 +103,7 @@ defmodule ToweropsWeb.Router do
# Enable LiveDashboard in production with authentication
scope "/dashboard" do
pipe_through [:browser, :require_authenticated_user]
pipe_through [:browser, :require_authenticated_user, :require_superuser]
live_dashboard "/",
metrics: ToweropsWeb.Telemetry,