Commit daf93e21 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Read and write permission of Standard and Acquired Property views

should have always been a list of available permissions as defined in
Products.ERP5Type.Permissions



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2250daa7
...@@ -267,3 +267,13 @@ class PropertySheetTool(BaseTool): ...@@ -267,3 +267,13 @@ class PropertySheetTool(BaseTool):
property_holder, property_holder,
property_sheet.getId(), property_sheet.getId(),
'erp5.zodb_accessor_holder') 'erp5.zodb_accessor_holder')
security.declareProtected(Permissions.ManagePortal,
'getPropertyAccessorPermissionList')
def getPropertyAvailablePermissionList(self):
"""
Return a sorted set of all the permissions useful for read/write
permissions for properties of ZODB Property Sheets
"""
return sorted(set([ value for key, value in Permissions.__dict__.iteritems() \
if key[0].isupper() ]))
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