From a149c1630cf98896aa5ae0285189f77907f9dcda Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Thu, 17 Oct 2013 11:21:22 +0200 Subject: [PATCH] hide link to topic if topic is not accessible because of its state --- compound/book/browser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compound/book/browser.py b/compound/book/browser.py index a7cae8d..fb6fcf6 100644 --- a/compound/book/browser.py +++ b/compound/book/browser.py @@ -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