Commit cf86a7c5 authored by Chris McDonough's avatar Chris McDonough

Fixed bug in _check_context which could allow for inappropriate access under certain circumstances.

parent 9aa8feee
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.153 $'[11:-2] __version__='$Revision: 1.154 $'[11:-2]
import Globals, socket, SpecialUsers,re import Globals, socket, SpecialUsers,re
import os import os
...@@ -236,8 +236,8 @@ class BasicUser(Implicit): ...@@ -236,8 +236,8 @@ class BasicUser(Implicit):
if not hasattr(object, 'aq_inContextOf'): if not hasattr(object, 'aq_inContextOf'):
# Object is not wrapped, so return false. # Object is not wrapped, so return false.
return 0 return 0
if object.aq_inContextOf(context, 1): return object.aq_inContextOf(context, 1)
return 1
# This is lame, but required to keep existing behavior. # This is lame, but required to keep existing behavior.
return 1 return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment