[CMF-checkins] CVS: Products/CMFDefault - DefaultWorkflow.py:1.7

Jens Vagelpohl jens@zope.com
Tue, 27 Nov 2001 16:53:06 -0500


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv8849

Modified Files:
	DefaultWorkflow.py 
Log Message:
Set permissions of an object restrictively if the state is not one of
Private, Pending or Published

PTK Tracker issue 371



=== Products/CMFDefault/DefaultWorkflow.py 1.6 => 1.7 ===
             owner_modify = 0
             reviewer_view = 1
+        else:   # This object is in an unknown state
+            anon_view = 0
+            owner_modify = 1
+            reviewer_view = 0
+
         # Modify role to permission mappings directly.
 
         return modifyPermissionMappings(ob,