[Zope-Checkins] CVS: Zope/lib/python/AccessControl - Owned.py:1.11.16.4

Brian Lloyd brian@zope.com
Fri, 8 Mar 2002 11:08:39 -0500


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv17160

Modified Files:
      Tag: Zope-2_4-branch
	Owned.py 
Log Message:
Fixed bug 236


=== Zope/lib/python/AccessControl/Owned.py 1.11.16.3 => 1.11.16.4 ===
         if new is None: return # Special user!
         old=aq_get(self, '_owner', None, 1)
-        if old==new: return
+
         if old is UnownableOwner: return
 
         for child in self.objectValues():
@@ -188,7 +188,7 @@
                 # make ownership explicit
                 child._owner=new
             
-        if old is not UnownableOwner:
+        if (old != new) and (old is not UnownableOwner):
             self._owner=new
 
     def userCanTakeOwnership(self):