[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.72.2.1
Andreas Jung
andreas@digicool.com
Tue, 15 Jan 2002 08:52:38 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv15054/lib/python/OFS
Modified Files:
Tag: Zope-2_5-branch
DTMLMethod.py
Log Message:
Setting proxy roles on DTMLMethod/Documents has been broken
due to changes in the security machinery
=== Zope/lib/python/OFS/DTMLMethod.py 1.72 => 1.72.2.1 ===
if not roles: return
user=u=getSecurityManager().getUser()
- user=user.hasRole
+ user=user.allowed
for r in roles:
if r and not user(self, (r,)):
user=None