feat: add Role (owner|admin) to the user domain, persistence model and mapper

This commit is contained in:
fsylvain committed 2026-09-30 00:58:58 +02:00
1 parent 162fea4afb
commit 461e93e3b5
30 files changed
+791 -48

No files matched your search

+2 -2
View File
@@ -99,13 +99,13 @@ func TestInvitationsQaList(t *testing.T) {
}
})
t.Run("The list never carries secrets or user emails", func(t *testing.T) {
t.Run("The list never carries secrets", func(t *testing.T) {
f := newInviteFixture(t, 100)
f.invites.seed(pendingInvite("sam@renew.example"))
body := f.list(t).Body.String()
for _, forbidden := range []string{"\"code\"", "hashed_code", "verification_code", "password", "marta@renew.example"} {
for _, forbidden := range []string{"\"code\"", "hashed_code", "verification_code", "password"} {
if strings.Contains(body, forbidden) {
t.Errorf("list leaks %q", forbidden)
}