Commit 17f850b8 authored by Vincent Pelletier's avatar Vincent Pelletier

Use 'IN' operator.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15331 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9276173f
...@@ -499,10 +499,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -499,10 +499,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
operator_kw = {'operator': 'AND'} operator_kw = {'operator': 'AND'}
query = ComplexQuery(*query_list, **operator_kw) query = ComplexQuery(*query_list, **operator_kw)
if allowedRolesAndUsers and security_uid_list: if allowedRolesAndUsers and security_uid_list:
query = ComplexQuery(Query(security_uid=security_uid_list), query = ComplexQuery(Query(security_uid=security_uid_list, operator='IN'),
query, operator='OR') query, operator='OR')
else: else:
query = Query(security_uid=security_uid_list) query = Query(security_uid=security_uid_list, operator='IN')
if original_query is not None: if original_query is not None:
query = ComplexQuery(query, original_query, operator='AND') query = ComplexQuery(query, original_query, operator='AND')
return query return query
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment