Commit 91658814 authored by Tres Seaver's avatar Tres Seaver

Launchpad #173658: Removed dead code in OFS.Traversable's

'unrestrictedTraverse' (apparent NameError).
parent 0a3c6fa3
......@@ -8,6 +8,9 @@ Zope Changes
Bugs Fixed
- Launchpad #173658: Removed dead code in OFS.Traversable's
'unrestrictedTraverse' (apparent NameError).
- Launchpad #198274: "empty" ZopePageTemplates could not be
unpickled.
......
......@@ -161,8 +161,8 @@ class Traversable:
# If the path starts with an empty string, go to the root first.
path_pop()
obj = self.getPhysicalRoot()
if restricted and not validate(None, None, None, obj):
raise Unauthorized(name)
if restricted:
validate(None, None, None, obj) # may raise Unauthorized
else:
obj = self
......
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