Commit 5ff54260 authored by Zachery Bir's avatar Zachery Bir

Local Roles should be keyed to the user's Id, not Username, especially

when external user folders can specify a difference.
parent bf27ac24
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
############################################################################## ##############################################################################
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.168 2003/12/16 01:38:18 fdrake Exp $""" $Id: ObjectManager.py,v 1.169 2004/03/16 22:08:34 urbanape Exp $"""
__version__='$Revision: 1.168 $'[11:-2] __version__='$Revision: 1.169 $'[11:-2]
import App.Management, Acquisition, Globals, CopySupport, Products import App.Management, Acquisition, Globals, CopySupport, Products
import os, App.FactoryDispatcher, re, Products import os, App.FactoryDispatcher, re, Products
...@@ -271,7 +271,7 @@ class ObjectManager( ...@@ -271,7 +271,7 @@ class ObjectManager(
if object.__ac_local_roles__ is None: if object.__ac_local_roles__ is None:
user=getSecurityManager().getUser() user=getSecurityManager().getUser()
if user is not None: if user is not None:
name=user.getUserName() name=user.getId()
if name != 'Anonymous User': if name != 'Anonymous User':
object.manage_setLocalRoles(name, ['Owner']) object.manage_setLocalRoles(name, ['Owner'])
......
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