diff --git a/internal/core/orgs.go b/internal/core/orgs.go index 5b56d18..13ffaaf 100644 --- a/internal/core/orgs.go +++ b/internal/core/orgs.go @@ -129,15 +129,8 @@ func (s *Handlers) pageOrg(w http.ResponseWriter, r *http.Request) { "Self": uid, "Error": r.URL.Query().Get("error"), } - if isAdmin { - domains, err := s.Store.ListOrgDomains(r.Context(), id) - if err != nil { - http.Error(w, "could not load domains", http.StatusInternalServerError) - return - } - data["Domains"] = domains - data["TXTName"] = txtRecordPrefix // org appends its hostname for the full record name - } + // Custom domains are hidden for now (infrastructure not in place); the + // org.html card and the /domains routes are disabled, so don't load them. s.Render(w, r, "org.html", data) } diff --git a/internal/core/templates/org.html b/internal/core/templates/org.html index 11ae04b..9ab958c 100644 --- a/internal/core/templates/org.html +++ b/internal/core/templates/org.html @@ -190,6 +190,9 @@ + {{/* Custom domains — hidden for now; the hosting/TLS infrastructure isn't in + place yet. Re-enable this card (plus the domains data in pageOrg and the + /domains routes in web.go) once it is.