Fix negate on FieldMatcherPolicy
This commit is contained in:
@ -284,8 +284,7 @@ class FieldMatcherPolicy(Policy):
|
||||
if self.match_action == FieldMatcherPolicy.MATCH_REGEXP:
|
||||
pattern = re.compile(self.value)
|
||||
passes = bool(pattern.match(user_field_value))
|
||||
if self.negate:
|
||||
passes = not passes
|
||||
|
||||
LOGGER.debug("User got '%r'", passes)
|
||||
return passes
|
||||
|
||||
|
Reference in New Issue
Block a user