--- a/src/pyams_security/security.py Wed Mar 11 12:14:35 2015 +0100
+++ b/src/pyams_security/security.py Tue Mar 17 16:02:49 2015 +0100
@@ -54,7 +54,7 @@
permission = self._everyone_permission
if permission is None and self.inherit_parent_security:
for parent in lineage(self):
- if parent is self:
+ if parent in (self, self.__parent__):
continue
protection = IProtectedObject(parent, None)
if protection is not None:
@@ -72,7 +72,7 @@
permission = self._authenticated_permission
if permission is None and self.inherit_parent_security:
for parent in lineage(self):
- if parent is self:
+ if parent in (self, self.__parent__):
continue
protection = IProtectedObject(parent, None)
if protection is not None: