[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.169
Zachery Bir
zbir at urbanape.com
Tue Mar 16 17:08:35 EST 2004
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv12979
Modified Files:
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.168 => 1.169 ===
--- Zope/lib/python/OFS/ObjectManager.py:1.168 Mon Dec 15 20:38:18 2003
+++ Zope/lib/python/OFS/ObjectManager.py Tue Mar 16 17:08:34 2004
@@ -271,7 +271,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