Commit 304555b8 authored by Jérome Perrin's avatar Jérome Perrin

isSupportBaseDataConversion should be protected by AccessContentsInformation,...

isSupportBaseDataConversion should be protected by AccessContentsInformation, not ModifyPortalContent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20390 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 228b67b7
...@@ -1302,7 +1302,8 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, Sna ...@@ -1302,7 +1302,8 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, ConversionCacheMixin, Sna
""" """
raise NotImplementedError raise NotImplementedError
security.declareProtected(Permissions.ModifyPortalContent, 'isSupportBaseDataConversion') security.declareProtected(Permissions.AccessContentsInformation,
'isSupportBaseDataConversion')
def isSupportBaseDataConversion(self): def isSupportBaseDataConversion(self):
""" """
This is a public interface to check a document that is support conversion This is a public interface to check a document that is support conversion
......
...@@ -145,7 +145,8 @@ class OOoDocument(PermanentURLMixIn, File, ConversionCacheMixin): ...@@ -145,7 +145,8 @@ class OOoDocument(PermanentURLMixIn, File, ConversionCacheMixin):
rx_strip = re.compile('<[^>]*?>', re.DOTALL|re.MULTILINE) rx_strip = re.compile('<[^>]*?>', re.DOTALL|re.MULTILINE)
rx_compr = re.compile('\s+') rx_compr = re.compile('\s+')
security.declareProtected(Permissions.ModifyPortalContent, 'isSupportBaseDataConversion') security.declareProtected(Permissions.AccessContentsInformation,
'isSupportBaseDataConversion')
def isSupportBaseDataConversion(self): def isSupportBaseDataConversion(self):
""" """
OOoDocument is needed to conversion to base format. OOoDocument is needed to conversion to base format.
......
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