Commit 78d75985 authored by Romain Courteaud's avatar Romain Courteaud

Modify security configuration of getTitleOrId, by changing View to

AccessContentInformation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7152 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd65567c
...@@ -1598,7 +1598,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -1598,7 +1598,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
return self._getCategoryTool().isAcquiredMemberOf(self, category) return self._getCategoryTool().isAcquiredMemberOf(self, category)
# Aliases # Aliases
security.declareProtected(Permissions.View, 'getTitleOrId') security.declareProtected(Permissions.AccessContentsInformation,
'getTitleOrId')
def getTitleOrId(self): def getTitleOrId(self):
""" """
Returns the title or the id if the id is empty Returns the title or the id if the id is empty
......
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