Commit 70bc55dd authored by Jim Fulton's avatar Jim Fulton

Use new getRoles function to get object roles, rather than using

__roles__ attribute.
parent 15570b8c
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
'''This module implements a mix-in for traversable objects. '''This module implements a mix-in for traversable objects.
$Id: Traversable.py,v 1.21 2003/09/29 12:34:38 andreasjung Exp $''' $Id: Traversable.py,v 1.22 2003/11/28 16:45:44 jim Exp $'''
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
from Acquisition import Acquired, aq_inner, aq_parent, aq_base from Acquisition import Acquired, aq_inner, aq_parent, aq_base
...@@ -91,7 +91,8 @@ class Traversable: ...@@ -91,7 +91,8 @@ class Traversable:
# If the path starts with an empty string, go to the root first. # If the path starts with an empty string, go to the root first.
pop() pop()
self=self.getPhysicalRoot() self=self.getPhysicalRoot()
if (restricted and not securityManager.validateValue(self)): if (restricted and not securityManager.validate(
None, None, None, self)):
raise Unauthorized, name raise Unauthorized, name
try: try:
......
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