Hide links from summary when not visible
authorThierry Florac <thierry.florac@onf.fr>
Tue, 23 Oct 2018 11:00:50 +0200
changeset 1030 8046e05b206d
parent 1029 4e7e71858d1c
child 1031 56cbd405769f
Hide links from summary when not visible
src/pyams_content/shared/site/link.py
--- a/src/pyams_content/shared/site/link.py	Tue Oct 23 10:48:34 2018 +0200
+++ b/src/pyams_content/shared/site/link.py	Tue Oct 23 11:00:50 2018 +0200
@@ -69,6 +69,8 @@
 
     @property
     def visible(self):
+        if not self.context.visible:
+            return False
         target = self.context.target
         return (target is not None) and IWorkflowPublicationInfo(target).is_visible(self.request)