[Erp5-report] r10003 - /erp5/trunk/products/ERP5Type/patches/CMFCoreUtils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 15 16:29:11 CEST 2006


Author: vincent
Date: Fri Sep 15 16:29:10 2006
New Revision: 10003

URL: http://svn.erp5.org?rev=10003&view=rev
Log:
Fix #201. Thanks to Stefan Friese for the patch.

Modified:
    erp5/trunk/products/ERP5Type/patches/CMFCoreUtils.py

Modified: erp5/trunk/products/ERP5Type/patches/CMFCoreUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/CMFCoreUtils.py?rev=10003&r1=10002&r2=10003&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/CMFCoreUtils.py (original)
+++ erp5/trunk/products/ERP5Type/patches/CMFCoreUtils.py Fri Sep 15 16:29:10 2006
@@ -42,7 +42,7 @@
         for action in actions:
             if action.getId() == view or action.getCategory().endswith('_%s' % view):
                 if _verifyActionPermissions(obj, action):
-                  if action.testCondition(context):
+                  if action.testCondition(context) and action.visible:
                     target = action.action(context).strip()
                     if target.startswith('/'):
                         target = target[1:]




More information about the Erp5-report mailing list