Make /logs strictly admin-only, never accessible in demo mode

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
root 2026-03-25 03:50:49 -05:00
parent 5df00a4018
commit e3207b9c8e

View File

@ -319,8 +319,9 @@ def demo_set_allowlist():
@app.route("/logs")
@admin_required
def logs_page():
if not is_admin():
return redirect("/login")
try:
with open("/var/www/html/report.html") as f:
return f.read()