[Zope-Checkins] CVS: Zope/lib/python/AccessControl - User.py:1.166.10.3
Brian Lloyd
brian@zope.com
Thu, 26 Sep 2002 09:52:02 -0400
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv26534
Modified Files:
Tag: Zope-2_5-branch
User.py
Log Message:
Deprecated hasRole alias failed to return result.
=== Zope/lib/python/AccessControl/User.py 1.166.10.2 => 1.166.10.3 ===
--- Zope/lib/python/AccessControl/User.py:1.166.10.2 Fri Mar 1 15:00:03 2002
+++ Zope/lib/python/AccessControl/User.py Thu Sep 26 09:52:01 2002
@@ -243,7 +243,7 @@
warnings.warn('BasicUser.hasRole is deprecated, please use '
'BasicUser.allowed instead; hasRole was an alias for allowed, but '
'you may have ment to use has_role.', DeprecationWarning)
- self.allowed(*args, **kw)
+ return self.allowed(*args, **kw)
domains=[]