[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.163.12.4

Zachery Bir zbir at urbanape.com
Tue Mar 16 16:54:49 EST 2004


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

Modified Files:
      Tag: Zope-2_7-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.163.12.3 => 1.163.12.4 ===
--- Zope/lib/python/OFS/ObjectManager.py:1.163.12.3	Mon Dec 15 17:12:06 2003
+++ Zope/lib/python/OFS/ObjectManager.py	Tue Mar 16 16:54:48 2004
@@ -270,7 +270,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