[CMF-checkins] CVS: Products/CMFCore - ActionInformation.py:1.26.2.5

Stefan H. Holek stefan at epy.co.at
Sat Jul 16 08:15:11 EDT 2005


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv12386/CMFCore

Modified Files:
      Tag: CMF-1_5-branch
	ActionInformation.py 
Log Message:
CMFCore/ActionInformation.py: Permissions of action categories starting
with 'document' are now evaluated in the object context instead of the
portal context. This should probably be generalized some more.

This fix is for Plone 2.1, please don't shoot me ;-)


=== Products/CMFCore/ActionInformation.py 1.26.2.4 => 1.26.2.5 ===
--- Products/CMFCore/ActionInformation.py:1.26.2.4	Sun Jun 26 06:58:30 2005
+++ Products/CMFCore/ActionInformation.py	Sat Jul 16 08:14:41 2005
@@ -121,7 +121,8 @@
         category = self['category']
         object = self._ec.contexts['object']
         if object is not None and ( category.startswith('object') or
-                                    category.startswith('workflow') ):
+                                    category.startswith('workflow') or
+                                    category.startswith('document') ):
             context = object
         else:
             folder = self._ec.contexts['folder']



More information about the CMF-checkins mailing list