author | Thierry Florac <thierry.florac@onf.fr> |
Tue, 11 Oct 2016 16:05:54 +0200 | |
changeset 16 | ea990f1f72d2 |
parent 15 | e917d512adbf |
child 17 | 3f879876f7a6 |
--- a/src/pyams_portal/portlet.py Tue Oct 11 16:05:13 2016 +0200 +++ b/src/pyams_portal/portlet.py Tue Oct 11 16:05:54 2016 +0200 @@ -134,6 +134,8 @@ self.portlet = self.request.registry.getUtility(IPortlet, name=settings.configuration.portlet_name) def __call__(self): + if not self.settings.visible: + return '' if self.portlet.permission and not self.request.has_permission(self.portlet.permission): return '' self.update()