Commit 04c4ca57 authored by Aurel's avatar Aurel

we don't need to declared Permissions.ModifyPortalContent on property

holder as it's managed as a default security in Accessors. This sould
improve the memory footprint


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21089 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 538c6055
......@@ -398,7 +398,7 @@ class PropertyHolder:
dangerous if classes use another default
security.
"""
if permission != Permissions.AccessContentsInformation:
if permission not in (Permissions.AccessContentsInformation, Permissions.ModifyPortalContent):
self.security.declareProtected(permission, accessor_name)
# Inspection methods
......
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