diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index eebb6894a5943f2bc830495741a70c7445a5c621..00ce38b1986110dd4a7a1ff7c347b0e2891ee7a0 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