diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py
index 71f9f78f75cf9428429335bc7fd6d742552a30cd..974f2d6ee6324843f94f2cb1acc71f50e7de6da0 100644
--- a/product/ERP5/Document/Document.py
+++ b/product/ERP5/Document/Document.py
@@ -238,7 +238,10 @@ class ConversionCacheMixin:
     """
     return str(makeSortedTuple(kw)).translate(string.maketrans('', ''), '[]()<>\'", ')
 
+  security.declareProtected(Permissions.ModifyPortalContent, 'updateContentMd5')
   def updateContentMd5(self):
+    """Update md5 checksum from the original file
+    """
     data = self.getData()
     self._setContentMd5(md5.new(data).digest()) #reindex is useless