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:
parent
5df00a4018
commit
e3207b9c8e
@ -319,8 +319,9 @@ def demo_set_allowlist():
|
|||||||
|
|
||||||
|
|
||||||
@app.route("/logs")
|
@app.route("/logs")
|
||||||
@admin_required
|
|
||||||
def logs_page():
|
def logs_page():
|
||||||
|
if not is_admin():
|
||||||
|
return redirect("/login")
|
||||||
try:
|
try:
|
||||||
with open("/var/www/html/report.html") as f:
|
with open("/var/www/html/report.html") as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user