[CMF-checkins] CVS: CMF/CMFCore - CatalogTool.py:1.42
Sidnei da Silva
sidnei@x3ng.com.br
Thu, 24 Apr 2003 17:18:33 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv750/CMFCore
Modified Files:
CatalogTool.py
Log Message:
Owners were not being added to allowedRolesAndUsers
=== CMF/CMFCore/CatalogTool.py 1.41 => 1.42 ===
--- CMF/CMFCore/CatalogTool.py:1.41 Mon Mar 10 04:55:57 2003
+++ CMF/CMFCore/CatalogTool.py Thu Apr 24 17:18:02 2003
@@ -66,9 +66,12 @@
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())
-
class CatalogTool (UniqueObject, ZCatalog, ActionProviderBase):
""" This is a ZCatalog that filters catalog queries.