Comment 6 for bug 143722

Revision history for this message
Wichert Akkerman (wichert) wrote :

The patch for Zope 2.10 and trunk is even simpler (see below). I completely failed to get a unittest for the access permissions working though, so I'm not commiting this.

Index: ObjectManager.py
===================================================================
--- ObjectManager.py (revision 68642)
+++ ObjectManager.py (working copy)
@@ -703,6 +703,7 @@
                 out=out+((k,stat),)
         return marshal.dumps(out)

+ security.declareProtected(access_contents_information, 'manage_hasId')
     def manage_hasId(self, REQUEST):
         """ check if the folder has an object with REQUEST['id'] """