code: def modify(self, request, nodes, namespace, root_id, post_cut, breadcrumb):
          
          if breadcrumb:
              return nodes
          for node in nodes:
              if node.attr.get('hidden'):
                  node.visible = False
          return nodes
docs: Modify nodes of a menu