hide link to topic if topic is not accessible because of its state
This commit is contained in:
parent
e503d9c70c
commit
a149c1630c
1 changed files with 3 additions and 1 deletions
|
@ -159,7 +159,9 @@ class Base(object):
|
||||||
|
|
||||||
def getParentsForResource(self, r):
|
def getParentsForResource(self, r):
|
||||||
for c in r.context.getConcepts([self.defaultPredicate]):
|
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
|
yield c
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue