Commit 5e49eb81 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_core: Base_reindexObjectSecurity use getattr instead of __getitem__

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