Commit 8af3b2b5 authored by Jim Fulton's avatar Jim Fulton

Changed allowed to look for im_self.

parent 1a2e890c
"""Access control package"""
__version__='$Revision: 1.45 $'[11:-2]
__version__='$Revision: 1.46 $'[11:-2]
from PersistentMapping import PersistentMapping
......@@ -43,6 +43,8 @@ class User(Implicit, Persistent):
obj_roles=['Shared',]
if hasattr(obj, 'aq_parent'):
obj=obj.aq_parent
elif hasattr(obj, 'im_self'):
obj=obj.im_self
else:
obj=None
continue
......
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