diff --git a/src/Filters/Rules/Person/_IsAncestorOf.py b/src/Filters/Rules/Person/_IsAncestorOf.py index 4caff6817..394d66d71 100644 --- a/src/Filters/Rules/Person/_IsAncestorOf.py +++ b/src/Filters/Rules/Person/_IsAncestorOf.py @@ -70,6 +70,8 @@ class IsAncestorOf(Rule): def init_ancestor_list(self, db, person,first): if not person: return + if person.handle in self.map: + return if not first: self.map.add(person.handle)