Commit 8dfa62ab authored by Romain Courteaud's avatar Romain Courteaud

Fix boolean operator, as one role column is enough for user to view an object.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25388 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 912c56a6
......@@ -588,7 +588,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
for key, value in role_column_dict.items():
new_query = Query(**{key : value})
query_list.append(new_query)
operator_kw = {'operator': 'AND'}
operator_kw = {'operator': 'OR'}
query = ComplexQuery(*query_list, **operator_kw)
# If security_uid_list is empty, adding it to criterions will only
# result in "false or [...]", so avoid useless overhead by not
......
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