diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py index 07f03c1e30718b7bc23c77c64e76c1c4d1a7a490..ebeefbe9d5782e5908e099a2fefb4da18e2dc793 100644 --- a/product/ERP5Type/Core/Folder.py +++ b/product/ERP5Type/Core/Folder.py @@ -261,7 +261,7 @@ class FolderMixIn(ExtensionClass.Base): return self.hasObject(id) # Get the content - security.declareProtected(Permissions.View, 'searchFolder') + security.declareProtected(Permissions.AccessContentsInformation, 'searchFolder') def searchFolder(self, **kw): """ Search the content of a folder by calling @@ -293,7 +293,7 @@ class FolderMixIn(ExtensionClass.Base): return self.portal_catalog.searchResults(**kw) - security.declareProtected(Permissions.View, 'countFolder') + security.declareProtected(Permissions.AccessContentsInformation, 'countFolder') def countFolder(self, **kw): """ Search the content of a folder by calling