require superuser for livedashboard
This commit is contained in:
parent
7b6298f5dc
commit
7cf59a88ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue