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