From e2267af2a9371f674a576c11644ea9478f9657bb Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Thu, 6 Oct 2005 08:02:40 +0000 Subject: [PATCH] Fixed permission string. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3971 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/Image.py b/product/ERP5/Document/Image.py index 84dd2559cf..1d95a5c427 100755 --- a/product/ERP5/Document/Image.py +++ b/product/ERP5/Document/Image.py @@ -92,7 +92,7 @@ class Image (Base, CMFPhoto): security.declareProtected('View', 'index_html') index_html = CMFPhoto.index_html - security.declareProtected('AccessContentsInformation', 'content_type') + security.declareProtected(Permissions.AccessContentsInformation, 'content_type') content_type = CMFPhoto.content_type # Copy support needs to be implemented by ExtFile @@ -125,4 +125,5 @@ class Image (Base, CMFPhoto): # Aliases for uniform update of data def manage_upload(self, file='', REQUEST=None): - self.manage_file_upload(self, file=file, REQUEST=None) \ No newline at end of file + self.manage_file_upload(self, file=file, REQUEST=None) + -- 2.30.9