[CMF-checkins] CVS: CMF - DefaultWorkflow.py:1.4
tseaver@digicool.com
tseaver@digicool.com
Tue, 27 Mar 2001 18:42:24 -0500 (EST)
Update of /cvs-repository/CMF/CMFCore
In directory korak:/tmp/cvs-serv13420/CMFCore
Modified Files:
DefaultWorkflow.py
Log Message:
* Make 'review_state' workflow info publically visible.
* Make DiscussionItem.getReplies() and
DiscussionItemContainter.getReplies() sho only 'published'
replies (allows retraction, for now).
--- Updated File DefaultWorkflow.py in package CMF --
--- DefaultWorkflow.py 2001/03/27 15:55:53 1.3
+++ DefaultWorkflow.py 2001/03/27 23:42:23 1.4
@@ -274,13 +274,14 @@
Allows the user to request information provided by the
workflow. This method must perform its own security checks.
'''
+ # Treat this as public.
+ if name == 'review_state':
+ return self.getReviewStateOf(ob)
+
allow_review = _checkPermission('Review portal content', ob)
allow_request = _checkPermission('Request review', ob)
if not allow_review and not allow_request:
return default
-
- if name == 'review_state':
- return self.getReviewStateOf(ob)
elif name == 'review_history':
tool = aq_parent(aq_inner(self))