Commit 5eb1539a authored by Shane Hathaway's avatar Shane Hathaway

Fixed bug introduced by local roles bugfix.

parent 2413d142
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.119 $'[11:-2] __version__='$Revision: 1.120 $'[11:-2]
import Globals, socket, ts_regex, SpecialUsers import Globals, socket, ts_regex, SpecialUsers
import os import os
...@@ -167,7 +167,7 @@ class BasicUser(Implicit): ...@@ -167,7 +167,7 @@ class BasicUser(Implicit):
local[r]=1 local[r]=1
inner = getattr(object, 'aq_inner', object) inner = getattr(object, 'aq_inner', object)
parent = getattr(inner, 'aq_parent', None) parent = getattr(inner, 'aq_parent', None)
if parent: if parent is not None:
object = parent object = parent
continue continue
if hasattr(object, 'im_self'): if hasattr(object, 'im_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