[Erp5-report] r21089 - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 23 10:22:34 CEST 2008
Author: aurel
Date: Fri May 23 10:22:33 2008
New Revision: 21089
URL: http://svn.erp5.org?rev=21089&view=rev
Log:
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
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=21089&r1=21088&r2=21089&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Fri May 23 10:22:33 2008
@@ -398,7 +398,7 @@
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
More information about the Erp5-report
mailing list