From 17f850b8ef79cffeb3504e5930b3e63a65cc8135 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 26 Jul 2007 16:37:24 +0000 Subject: [PATCH] Use 'IN' operator. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15331 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/CatalogTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index eebb6894a5..00ce38b198 100644 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -499,10 +499,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): operator_kw = {'operator': 'AND'} query = ComplexQuery(*query_list, **operator_kw) 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') else: - query = Query(security_uid=security_uid_list) + query = Query(security_uid=security_uid_list, operator='IN') if original_query is not None: query = ComplexQuery(query, original_query, operator='AND') return query -- 2.30.9