Render without root layout

This commit is contained in:
Alexandre de Souza 2025-05-08 16:29:00 -03:00
parent b836e5219c
commit ec0abe155a
No known key found for this signature in database
GPG key ID: E39228FFBA346545

View file

@ -136,6 +136,7 @@ defmodule LivebookWeb.AuthPlug do
conn
|> put_status(:unauthorized)
|> put_view(LivebookWeb.ErrorHTML)
|> put_root_layout(false)
|> render("401.html", %{details: "You don't have permission to access this server"})
|> halt()
end