[CMF-checkins] CVS: CMF - DefaultWorkflow.py:1.4 DiscussionItem.py:1.14 SyndicationTool.py:1.5
tseaver@digicool.com
tseaver@digicool.com
Fri, 8 Jun 2001 11:07:23 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv19450/CMFDefault
Modified Files:
DefaultWorkflow.py DiscussionItem.py SyndicationTool.py
Log Message:
- Work around breakage in SecurityManager.checkPermission (members
were failing permission checks which Anonymous passed).
--- Updated File DefaultWorkflow.py in package CMF --
--- DefaultWorkflow.py 2001/05/21 22:56:32 1.3
+++ DefaultWorkflow.py 2001/06/08 15:07:22 1.4
@@ -92,8 +92,8 @@
from Acquisition import aq_base, aq_inner, aq_parent
from AccessControl import ClassSecurityInfo
from DateTime import DateTime
-from Products.CMFCore.utils import modifyPermissionMappings, \
- _checkPermission, getToolByName, SimpleItemWithProperties
+from Products.CMFCore.utils import modifyPermissionMappings, _checkPermission
+from Products.CMFCore.utils import getToolByName, SimpleItemWithProperties
from Products.CMFCore.WorkflowCore import WorkflowException
from Products.CMFCore.WorkflowTool import addWorkflowClass
--- Updated File DiscussionItem.py in package CMF --
--- DiscussionItem.py 2001/06/07 22:20:52 1.13
+++ DiscussionItem.py 2001/06/08 15:07:22 1.14
@@ -90,7 +90,7 @@
from Document import Document
from DublinCore import DefaultDublinCoreImpl
from DateTime import DateTime
-from Products.CMFCore.utils import getToolByName, _checkPermission
+from Products.CMFCore.utils import getToolByName
from Products.CMFCore.PortalContent import PortalContent
import urllib, string
--- Updated File SyndicationTool.py in package CMF --
--- SyndicationTool.py 2001/05/25 18:32:09 1.4
+++ SyndicationTool.py 2001/06/08 15:07:22 1.5
@@ -88,7 +88,7 @@
import os
-from Products.CMFCore.utils import UniqueObject
+from Products.CMFCore.utils import UniqueObject, _checkPermission
from OFS.SimpleItem import SimpleItem
from Globals import HTMLFile, package_home, InitializeClass
import string
@@ -198,7 +198,7 @@
Not Sitewide Properties.
"""
mgr = SecurityManagement.getSecurityManager()
- if not mgr.checkPermission( ManageProperties, obj ):
+ if not _checkPermission( ManageProperties, obj ):
raise Unauthorized
#import pdb; pdb.set_trace()
syInfo = getattr(obj, 'syndication_information',