Commit 2e98be8d authored by Julien Muchembled's avatar Julien Muchembled

Do not set security of portal_types.

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/portal_types@29249 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4abb1c86
......@@ -1353,8 +1353,8 @@ class ERP5Generator(PortalGenerator):
addTool('ERP5 Memcached Tool', None)
if not p.hasObject('portal_types'):
addTool('ERP5 Types Tool', None)
transaction.get().beforeCommitHook(lambda:
p.portal_types.Base_setDefaultSecurity())
#transaction.get().beforeCommitHook(lambda:
# p.portal_types.Base_setDefaultSecurity())
try:
addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool
......
......@@ -121,7 +121,7 @@ class OldTypesTool(OFSFolder):
parent.portal_categories._setObject(action_type.id, action_type)
for type_info in self.objectValues():
self._migratePortalType(types_tool, type_info)
types_tool.activate().Base_setDefaultSecurity()
#types_tool.activate().Base_setDefaultSecurity()
except:
transaction.abort()
LOG('OldTypesTool', PANIC, 'Could not convert portal_types: ',
......
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