[Zope-Checkins] CVS: Packages/AccessControl - User.py:1.152.4.2
Chris McDonough
chrism@cvs.zope.org
Sat, 4 Aug 2001 09:49:26 -0400
Update of /cvs-repository/Packages/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv11530
Modified Files:
Tag: Zope-2_4-branch
User.py
Log Message:
Fixed problem in _check_context that could lead to inappropriate access under certain circumstances.
=== Packages/AccessControl/User.py 1.152.4.1 => 1.152.4.2 ===
# Object is not wrapped, so return false.
return 0
- if object.aq_inContextOf(context, 1):
- return 1
+ return object.aq_inContextOf(context, 1)
+
# This is lame, but required to keep existing behavior.
return 1