add MFA, user web mail portal

This commit is contained in:
2026-08-13 08:07:19 +01:00
parent 70c05cc777
commit bc4bbe6e56
38 changed files with 1072 additions and 59 deletions
+6
View File
@@ -196,6 +196,12 @@ func (a *App) render(w http.ResponseWriter, r *http.Request, page string, data M
}
data["flashes"] = popFlashes(w, r)
data["health"] = a.checkHealth()
// Drives the sidebar hiding Server Settings/Let's Encrypt for scoped admins (see
// requireGlobalAdmin, which is the actual enforcement — this only controls the
// link's visibility).
if u := userFromContext(r); u != nil {
data["is_global_admin"] = u.IsGlobalAdmin
}
// Sidebar badge counts (Domains/Senders/Mailboxes/IPs/DKIM Keys) — computed here,
// centrally, so every authenticated page shows them, not just the dashboard (which
// used to compute these itself and nowhere else did).