Commit 1647c5c7 authored by Sebastien Robin's avatar Sebastien Robin

setDescription had a security declaration in CMFCore not compatible with ERP5 policy


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2972 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent adbd785b
...@@ -671,7 +671,6 @@ be a problem).""" ...@@ -671,7 +671,6 @@ be a problem)."""
result = "%s OR %s" % (result, o.getParentSqlExpression(table=table, strict_membership=strict_membership)) result = "%s OR %s" % (result, o.getParentSqlExpression(table=table, strict_membership=strict_membership))
return "( %s )" % result return "( %s )" % result
security.declareProtected( Permissions.ModifyPortalContent, 'setTitle' )
def mergeContent(self,from_object=None,to_object=None, delete=1,**kw): def mergeContent(self,from_object=None,to_object=None, delete=1,**kw):
""" """
...@@ -733,5 +732,7 @@ be a problem).""" ...@@ -733,5 +732,7 @@ be a problem)."""
object_list.sort(cmpObjects) object_list.sort(cmpObjects)
return object_list return object_list
# Override security declaration of CMFCore/PortalFolder (used by CMFBTreeFolder)
security.declareProtected(Permissions.ModifyPortalContent,'setDescription') security.declareProtected(Permissions.ModifyPortalContent,'setDescription')
security.declareProtected( Permissions.ModifyPortalContent, 'setTitle' )
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