Sicherheit: Live-Aktionen nur mit aktivem Login; Seitenleiste warnt rot bei ausgeschaltetem Login

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
RubenRWU
2026-10-15 15:57:27 +02:00
parent e663b007d4
commit 8c3795ec8c
7 changed files with 28 additions and 4 deletions

View File

@@ -23,7 +23,8 @@ PORT = "8276"
def live_enabled() -> bool:
return os.getenv("DEPLOY_LIVE", "false").lower() == "true"
"""DEPLOY_LIVE=true UND aktiver Login (guard.auth_ok) – ohne Login bleibt alles im Dry-Run."""
return os.getenv("DEPLOY_LIVE", "false").lower() == "true" and guard.auth_ok()
def token_present() -> bool: