[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.73
Andreas Jung
andreas@digicool.com
Tue, 15 Jan 2002 08:54:58 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv15245/lib/python/OFS
Modified Files:
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.73 ===
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