From 5a03cf3304a312083b127c140eaa74a83463cc19 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Thu, 1 Oct 2026 20:38:26 +0000 Subject: [PATCH] Remove the fixed Account Type row from the profile page (closes #401) The profile page showed "Account Type: Standard User" as fixed text, even for admin, the account webhooker creates as its administrator. webhooker has no account types, so the row is gone. The own-profile test now checks that the page renders its Account Information section without an Account Type row. Model: opus-5-5 --- internal/handlers/profile_test.go | 2 ++ templates/profile.html | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/handlers/profile_test.go b/internal/handlers/profile_test.go index 18692c3..c68a35e 100644 --- a/internal/handlers/profile_test.go +++ b/internal/handlers/profile_test.go @@ -88,6 +88,8 @@ func TestHandleProfile_OwnProfile_OK(t *testing.T) { h.HandleProfile().ServeHTTP(w, req) assert.Equal(t, http.StatusOK, w.Code) + assert.Contains(t, w.Body.String(), "Account Information") + assert.NotContains(t, w.Body.String(), "Account Type") } func TestHandleProfile_OtherProfile_Forbidden(t *testing.T) { diff --git a/templates/profile.html b/templates/profile.html index 3210da2..2857071 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -41,10 +41,6 @@
Username
{{.User.Username}}
-
-
Account Type
-
Standard User
-