diff --git a/product/ERP5/Document/File.py b/product/ERP5/Document/File.py index 580ac529a8cc625e774e36536b0e46ceb2a1488b..1ca5afbb5c57c714e37949301620a9c921917cae 100644 --- a/product/ERP5/Document/File.py +++ b/product/ERP5/Document/File.py @@ -224,7 +224,8 @@ class File(Document, CMFFile): return (mime_type, content) - def _convert(self, format, **kw): + security.declareProtected(Permissions.AccessContentsInformation, 'convert') + def convert(self, format, **kw): """According content_type of data we can proceed some Conversions. The idea is to wrap data into TempDocument who support conversion then return conversion from this temporary document.