Commit a7893d94 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use Permissions.AccessContentsInformation instead of Permissions.View for...

use Permissions.AccessContentsInformation instead of Permissions.View for searchFolder and countFolder, same as ones in ERP5/ERP5Site.py.
parent 520bf509
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment