Minor fix

This commit is contained in:
Ben 2025-06-26 16:43:51 -07:00
parent cd502ab442
commit e0bd55088e
Signed by: webmaster
GPG key ID: A5FCBAF34E6E8B50

View file

@ -183,7 +183,7 @@ def validateSender(self, region: str, sender: str):
# Check that config value exists # Check that config value exists
if not self.config["allowed_regions"]: return False if not self.config["allowed_regions"]: return False
# Check that region is allowed # Check that region is allowed
if not self.config["allowed_regions"][region]: return False if not region in self.config["allowed_regions"]: return False
# All senders allowed for this region # All senders allowed for this region
if len(self.config["allowed_regions"][region]) == 0: return True if len(self.config["allowed_regions"][region]) == 0: return True
# Check that sender is allowed for region # Check that sender is allowed for region