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:
# 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