From a56f1fe0c8d35d21c24607507cb5d0da18ea941a Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Thu, 1 Oct 2026 23:24:41 +0200 Subject: [PATCH] Remove the fixed Account Type row from the profile page (closes #401) The profile page no longer shows the fixed "Account Type: Standard User" row. webhooker has one account, the administrator it creates, and no account types, so the row was untrue. The Account Information section now lists the username alone, and a test checks the row stays gone. 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 @@