[Zope-Checkins] CVS: Zope/lib/python/OFS -
ObjectManager.py:1.158.6.2
Zachery Bir
zbir at urbanape.com
Tue Mar 16 17:05:41 EST 2004
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv12418
Modified Files:
Tag: Zope-2_6-branch
ObjectManager.py
Log Message:
Local Roles should be keyed to the user's Id, not Username, especially
when external user folders can specify a difference.
=== Zope/lib/python/OFS/ObjectManager.py 1.158.6.1 => 1.158.6.2 ===
--- Zope/lib/python/OFS/ObjectManager.py:1.158.6.1 Sun Nov 2 13:14:44 2003
+++ Zope/lib/python/OFS/ObjectManager.py Tue Mar 16 17:05:41 2004
@@ -266,7 +266,7 @@
if object.__ac_local_roles__ is None:
user=getSecurityManager().getUser()
if user is not None:
- name=user.getUserName()
+ name=user.getId()
if name != 'Anonymous User':
object.manage_setLocalRoles(name, ['Owner'])
More information about the Zope-Checkins
mailing list