Skip to content

Commit

Permalink
find user by name instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhard Weis committed Apr 9, 2015
1 parent 8aa6967 commit a772a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/bccvl/tasks/plone.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def new_func(self, *args, **kw):
uf = getattr(site, 'acl_users', None)
user = None
while uf is not None:
user = uf.getUserById(userid)
# FIXME: should this be user id or user name?
user = uf.getUser(name=userid)
if user is not None:
break
parent = uf.__parent__.__parent__
Expand Down

0 comments on commit a772a49

Please sign in to comment.