diff --git a/product/ERP5/Document/File.py b/product/ERP5/Document/File.py index 69d3e1a84015af125cac9ef3963590866f8dd424..da77f38d79978de62ebcdcff9a7a4bda860ce795 100644 --- a/product/ERP5/Document/File.py +++ b/product/ERP5/Document/File.py @@ -116,6 +116,12 @@ class File(Document, CMFFile, ConversionCacheMixin): security.declareProtected( Permissions.ModifyPortalContent, 'edit' ) edit = WorkflowMethod( _edit ) + security.declareProtected(Permissions.ModifyPortalContent, 'manage_upload') + def manage_upload(self, file='', REQUEST=''): + res = CMFFile.manage_upload(self, file, REQUEST) + self.setSourceReference(file.filename) + return res + # Copy support needs to be implemented by ExtFile ################################ # Special management methods #