Minor fix
This commit is contained in:
parent
cd502ab442
commit
e0bd55088e
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ def validateSender(self, region: str, sender: str):
|
|||
# Check that config value exists
|
||||
if not self.config["allowed_regions"]: return False
|
||||
# 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
|
||||
if len(self.config["allowed_regions"][region]) == 0: return True
|
||||
# Check that sender is allowed for region
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue