[Zope-CMF] Re: [CMF-checkins] CVS: CMF/CMFCore - CatalogTool.py:1.30.4.7
Chris Withers
chrisw@nipltd.com
Fri, 25 Apr 2003 08:36:51 +0100
Hi Sidnei,
I'm probably missing something, but where are the tests to accompany these checkins?
cheers,
Chris
Sidnei da Silva wrote:
> Update of /cvs-repository/CMF/CMFCore
> In directory cvs.zope.org:/tmp/cvs-serv2038/CMFCore
>
> Modified Files:
> Tag: CMF-1_3-branch
> CatalogTool.py
> Log Message:
> Owner was not being added to allowedRolesAndUsers
>
> === CMF/CMFCore/CatalogTool.py 1.30.4.6 => 1.30.4.7 ===
> --- CMF/CMFCore/CatalogTool.py:1.30.4.6 Thu Aug 1 15:07:55 2002
> +++ CMF/CMFCore/CatalogTool.py Thu Apr 24 17:25:23 2003
> @@ -61,6 +61,10 @@
> if allowed.has_key(role):
> allowed['user:' + user] = 1
> if allowed.has_key('Owner'):
> + owner = ob.getOwner()
> + if hasattr( owner, 'getId' ):
> + if owner.getId() is not None:
> + allowed['user:' + owner.getId()] = 1
> del allowed['Owner']
> return list(allowed.keys())