Commit 1ca724f5 authored by Łukasz Nowak's avatar Łukasz Nowak

- revert 36980, as it gives too much performance penalty


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37005 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 190afb20
......@@ -125,12 +125,7 @@ class IndexableObjectWrapper(object):
for user, roles in localroles.iteritems():
prefix = 'user:' + user
for role in roles:
if (role in role_dict) and (getUserById(user) is not None
# support special case - reindex person for first time, when
# it is not returned yet by getUserById, as it is not available
# yet in catalog
or (self.getPortalType() == 'Person' and
self.getReference() == user)):
if (role in role_dict) and (getUserById(user) is not None):
# If role is monovalued, check if key is a user.
# If not, continue to index it in roles_and_users table.
user_role_dict[role] = user
......
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