Merge pull request #10722 from jumpserver/pr@dev@perf_json_filter_m2m

perf: 优化 json m2m filter
pull/10723/head
老广 2023-06-14 21:11:41 +08:00 committed by GitHub
commit aad804f1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class JSONManyToManyDescriptor:
value = [value.id]
value = set(map(str, value))
rule_value = set(map(str, rule_value))
res &= rule_value.issubset(value)
res &= value.issubset(rule_value)
else:
logging.error("unknown match: {}".format(rule['match']))
res &= False