Convert domain without checking access

The searcher of Function field may execute code for which the user has no
access.

Closes #14077
This commit is contained in:
Cédric Krier
2025-06-16 19:42:12 +02:00
parent 98f6f4b037
commit c3a9faea42
+2 -1
View File
@@ -1703,7 +1703,8 @@ class ModelSQL(ModelStorage):
else:
return [convert(d) for d in domain]
domain = simplify(convert(domain))
with without_check_access():
domain = simplify(convert(domain))
rule_domain = Rule.domain_get(cls.__name__, mode='read')
joined_domains = None
if domain and domain[0] == 'OR':