Commit b9853b55 authored by Tres Seaver's avatar Tres Seaver

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

'unrestrictedTraverse' (apparent NameError).
parent 56f92101
...@@ -161,8 +161,8 @@ class Traversable: ...@@ -161,8 +161,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.
path_pop() path_pop()
obj = self.getPhysicalRoot() obj = self.getPhysicalRoot()
if restricted and not validate(None, None, None, obj): if restricted:
raise Unauthorized(name) validate(None, None, None, obj) # may raise Unauthorized
else: else:
obj = self 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