From 0c1d950ceb06708bf9d1d531e69c864d5145c015 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Fri, 28 May 2010 16:27:00 +0000
Subject: [PATCH] Same as r35749

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35754 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/File.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/File.py b/product/ERP5/Document/File.py
index 580ac529a8..1ca5afbb5c 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.
-- 
2.30.9