Commit 5d1f238c authored by Jérome Perrin's avatar Jérome Perrin

AcquiredProperty.Setter was created with read_permission


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5048 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 32147807
......@@ -1359,7 +1359,7 @@ def createDefaultAccessors(property_holder, id, prop = None,
)
if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor)
property_holder.security.declareProtected( read_permission, accessor_name )
property_holder.security.declareProtected( write_permission, accessor_name )
accessor_name = 'baseSet' + UpperCase(id)
if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
......
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