restrict using type as parent to IConcept and IResource objects
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3199 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
3eba4b94fb
commit
46b8b0b7eb
1 changed files with 9 additions and 8 deletions
|
@ -128,6 +128,7 @@ class LoopsSecurityPolicy(ZopeSecurityPolicy):
|
||||||
parents = cache.parents
|
parents = cache.parents
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
parents = []
|
parents = []
|
||||||
|
if IConcept.providedBy(obj) or IResource.providedBy(obj):
|
||||||
try:
|
try:
|
||||||
parents.append(obj.getType())
|
parents.append(obj.getType())
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Add table
Reference in a new issue