Commit 99272e48 authored by matt@zope.com's avatar matt@zope.com

Back out getUserById fix in deference to getOwner patch

parent ace47b97
...@@ -53,7 +53,7 @@ Zope Changes ...@@ -53,7 +53,7 @@ Zope Changes
- Collector #250: applied several patches for TextIndex for better - Collector #250: applied several patches for TextIndex for better
unicode support for the GlobbingLexicon unicode support for the GlobbingLexicon
- Collector #254: user object was being returned without wrapping - Collector #254: return owner object from getOwner wrapped in its
context context
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.167 $'[11:-2] __version__='$Revision: 1.168 $'[11:-2]
import Globals, socket, SpecialUsers,re import Globals, socket, SpecialUsers,re
import os import os
...@@ -490,8 +490,7 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager, ...@@ -490,8 +490,7 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
# The connection between getting by ID and by name is not a strong # The connection between getting by ID and by name is not a strong
# one # one
try: try:
result=self.getUser(id) return self.getUser(id)
return result.__of__(self) # Wrap in our context
except: except:
if default is _marker: raise if default is _marker: raise
return default return default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment