diff --git a/product/CMFCategory/Category.py b/product/CMFCategory/Category.py index dc87fec086153ece8bf2e6791196be3aa1fd8642..ad11a27d3609309641a81274b35aca197ab660c2 100644 --- a/product/CMFCategory/Category.py +++ b/product/CMFCategory/Category.py @@ -689,7 +689,7 @@ class Category(Folder): """ return '/'.join(self.portal_url.getRelativeContentPath(self)[1:]) - security.declareProtected( Permissions.View, 'isMemberOf' ) + security.declareProtected( Permissions.AccessContentsInformation, 'isMemberOf' ) def isMemberOf(self, category, **kw): """ Tests if an object if member of a given category diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index f0e793b9ffb457cb66a509b8adf1dbf0e6193c53..87e5b4e56e724aa8c6fe68fb82268f1239822cb6 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -2405,14 +2405,14 @@ class Base( CopyContainer, self._getCategoryTool()._cleanupCategories() # Category testing - security.declareProtected( Permissions.View, 'isMemberOf' ) + security.declareProtected( Permissions.AccessContentsInformation, 'isMemberOf' ) def isMemberOf(self, category, **kw): """ Tests if an object if member of a given category """ return self._getCategoryTool().isMemberOf(self, category, **kw) - security.declareProtected( Permissions.View, 'isAcquiredMemberOf' ) + security.declareProtected( Permissions.AccessContentsInformation, 'isAcquiredMemberOf' ) def isAcquiredMemberOf(self, category): """ Tests if an object if member of a given category