Allow per-app allow/deny.
This commit is contained in:
1 parent
c15a1cc14c
commit
8ce2919627
19 files changed
+1151
-187
No files matched your search
@@ -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