fix breadcrumb check: view may be None because of restricted permissions
This commit is contained in:
parent
4f710c15d6
commit
fecac89a84
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ class ConceptView(BaseView):
|
|||
def breadcrumbsParent(self):
|
||||
for p in self.context.getParents([self.defaultPredicate]):
|
||||
view = self.nodeView.getViewForTarget(p)
|
||||
if view.showInBreadcrumbs:
|
||||
if view is not None and view.showInBreadcrumbs:
|
||||
return view
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue