Commit 7c1b947a authored by Jérome Perrin's avatar Jérome Perrin

remove setPortalType method, it should not be possible to change so easilly the

portal type of created document.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23183 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b52c5ea3
......@@ -2568,15 +2568,6 @@ class Base( CopyContainer,
localizer = getToolByName(self, 'Localizer')
return localizer.erp5_ui.gettext(portal_type).encode('utf8')
security.declareProtected(Permissions.ModifyPortalContent, 'setPortalType')
def setPortalType(self, portal_type = None):
"""
This allows to set the portal_type
"""
if portal_type is not None:
self.portal_type = portal_type
security.declareProtected(Permissions.AccessContentsInformation, 'getMetaType')
def getMetaType(self):
"""
......
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