Allow per-app allow/deny.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user