hide link to topic if topic is not accessible because of its state

This commit is contained in:
Helmut Merz 2013-10-17 11:21:22 +02:00
parent e503d9c70c
commit a149c1630c

View file

@ -159,7 +159,9 @@ class Base(object):
def getParentsForResource(self, r):
for c in r.context.getConcepts([self.defaultPredicate]):
if c != self.context and c.conceptType != self.documentTypeType:
if (c != self.context and
c.conceptType != self.documentTypeType and
self.getViewForObject(c).checkState()):
yield c