Commit c67874eb authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added CPS patch circumvent code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2326 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fc5267c
...@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo ...@@ -30,6 +30,7 @@ from AccessControl import ClassSecurityInfo
from Acquisition import aq_base, aq_self from Acquisition import aq_base, aq_self
import ExtensionClass import ExtensionClass
from OFS.CopySupport import CopyContainer as OriginalCopyContainer
from Products.CMFCore.utils import _getAuthenticatedUser from Products.CMFCore.utils import _getAuthenticatedUser
from Products.ERP5Type.Base import Base from Products.ERP5Type.Base import Base
...@@ -260,6 +261,9 @@ be a problem).""" ...@@ -260,6 +261,9 @@ be a problem)."""
_setPropValue = Base._setPropValue _setPropValue = Base._setPropValue
_propertyMap = Base._propertyMap # are there any others XXX ? _propertyMap = Base._propertyMap # are there any others XXX ?
# CPS patch circumvent
manage_renameObject = OriginalCopyContainer.manage_renameObject
#security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' ) #security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' )
#manage_delObjects = CopyContainer.manage_delObjects #manage_delObjects = CopyContainer.manage_delObjects
......
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