[Zope-Checkins] CVS: Zope/lib/python/AccessControl - User.py:1.170.6.1

Brian Lloyd brian@zope.com
Thu, 26 Sep 2002 09:53:53 -0400


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv26753/lib/python/AccessControl

Modified Files:
      Tag: Zope-2_6-branch
	User.py 
Log Message:
Deprecated hasRole alias failed to return result.


=== Zope/lib/python/AccessControl/User.py 1.170 => 1.170.6.1 ===
--- Zope/lib/python/AccessControl/User.py:1.170	Wed Aug 14 17:29:07 2002
+++ Zope/lib/python/AccessControl/User.py	Thu Sep 26 09:53:53 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=[]