Commit 05522434 authored by Aurel's avatar Aurel

if security_uid_list is empty, return None, thus this result is taken

into account when using count/searchResult


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13826 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6146164a
...@@ -481,6 +481,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -481,6 +481,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
if allowedRolesAndUsers: if allowedRolesAndUsers:
allowedRolesAndUsers = ["'%s'" % (role, ) for role in allowedRolesAndUsers] allowedRolesAndUsers = ["'%s'" % (role, ) for role in allowedRolesAndUsers]
security_uid_list = [x.uid for x in method(security_roles_list = allowedRolesAndUsers)] security_uid_list = [x.uid for x in method(security_roles_list = allowedRolesAndUsers)]
if len(security_uid_list) == 0:
security_uid_list = None
if role_column_dict: if role_column_dict:
query_list = [] query_list = []
for key, value in role_column_dict.items(): for key, value in role_column_dict.items():
......
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