[Erp5-report] r21099 - /erp5/trunk/products/ERP5Catalog/CatalogTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 23 15:17:27 CEST 2008


Author: nicolas
Date: Fri May 23 15:17:21 2008
New Revision: 21099

URL: http://svn.erp5.org?rev=21099&view=rev
Log:
If document doesn't acquire local roles, it should define is own Security

Modified:
    erp5/trunk/products/ERP5Catalog/CatalogTool.py

Modified: erp5/trunk/products/ERP5Catalog/CatalogTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Catalog/CatalogTool.py?rev=21099&r1=21098&r2=21099&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Catalog/CatalogTool.py (original)
+++ erp5/trunk/products/ERP5Catalog/CatalogTool.py Fri May 23 15:17:21 2008
@@ -723,7 +723,8 @@
           # This condition tells which object should acquire 
           # from their parent.
           # XXX Hardcode _View_Permission for a performance point of view
-          if getattr(aq_base(document_object), '_View_Permission', ACQUIRE_PERMISSION_VALUE) == ACQUIRE_PERMISSION_VALUE:
+          if getattr(aq_base(document_object), '_View_Permission', ACQUIRE_PERMISSION_VALUE) == ACQUIRE_PERMISSION_VALUE\
+             and document_object._getAcquireLocalRoles():
             document_object = document_object.aq_parent
             is_acquired = 1
           else:




More information about the Erp5-report mailing list