Commit 047841d7 authored by Florent Guillaume's avatar Florent Guillaume

Correct view traversal security checks

parent 5ffafcc6
......@@ -260,6 +260,10 @@ class Traversable:
if next is not None:
next = next.__of__(obj)
if restricted:
if not securityManager.validate(
obj, obj, name, next):
raise Unauthorized, name
elif bobo_traverse is not None:
# Attribute lookup should not be done after
# __bobo_traverse__:
......
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