Commit 27126964 authored by Julien Muchembled's avatar Julien Muchembled

Fix Base_reindexObjectSecurity when an allowed content is a solver

parent 9de61fa2
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
# with lots of content could mean hours of non-usable overloaded system. # with lots of content could mean hours of non-usable overloaded system.
type_tool = context.getPortalObject().portal_types type_tool = context.getPortalObject().portal_types
for portal_type_name in context.getTypeInfo().getTypeAllowedContentTypeList(): for portal_type_name in context.getTypeInfo().getTypeAllowedContentTypeList():
portal_type = type_tool[portal_type_name] if getattr(type_tool, portal_type_name).getTypeAcquireLocalRole():
if portal_type.getTypeAcquireLocalRole():
reindex = context.recursiveReindexObject reindex = context.recursiveReindexObject
break break
else: else:
......
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