[CMF-checkins] CVS: CMF/CMFCore - CatalogTool.py:1.30.4.7
Sidnei da Silva
sidnei@x3ng.com.br
Thu, 24 Apr 2003 17:25:23 -0400
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())