Allow per-app allow/deny.

This commit is contained in:
Greyson Parrelli
2026-08-06 13:53:24 -04:00
parent c15a1cc14c
commit 8ce2919627
19 changed files with 1151 additions and 187 deletions
+4 -4
View File
@@ -354,8 +354,8 @@ func TestEmailAllowed(t *testing.T) {
"signal.org": false,
}
for email, want := range cases {
if got := s.emailAllowed(email); got != want {
t.Errorf("emailAllowed(%q) = %v, want %v", email, got, want)
if got := s.emailAllowedFor("", email); got != want {
t.Errorf("emailAllowedFor(%q) = %v, want %v", email, got, want)
}
}
}
@@ -373,8 +373,8 @@ func TestEmailDenied(t *testing.T) {
"guest@partner.com": false,
}
for email, want := range cases {
if got := s.emailAllowed(email); got != want {
t.Errorf("emailAllowed(%q) = %v, want %v", email, got, want)
if got := s.emailAllowedFor("", email); got != want {
t.Errorf("emailAllowedFor(%q) = %v, want %v", email, got, want)
}
}
}