[Zope-Checkins] CVS: Zope/lib/python/AccessControl - User.py:1.152.4.4

Matthew T. Kromer matt@zope.com
Fri, 1 Mar 2002 13:06:08 -0500


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

Modified Files:
      Tag: Zope-2_4-branch
	User.py 
Log Message:
Route user folder access control fix to Zope 2.4


=== Zope/lib/python/AccessControl/User.py 1.152.4.3 => 1.152.4.4 ===
         """Return the user corresponding to the given id.
         """
-        try: return self.getUser(id)
+        # The connection between getting by ID and by name is not a strong
+        # one
+        try:
+           result=self.getUser(id)
+           return result.__of__(self) # Wrap in our context
         except:
            if default is _marker: raise
            return default