Privacy problem with the relation to the center person. (#555)

Bug #12345
This commit is contained in:
Serge Noiraud 2018-02-24 08:34:58 +01:00 committed by GitHub
parent 9c5951a9e9
commit f0719c9eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1668,6 +1668,8 @@ class PersonPages(BasePage):
self.report.options['pid']) self.report.options['pid'])
if center_person is None: if center_person is None:
return return
if probably_alive(center_person, self.r_db, Today()):
return
relationship = self.rel_class.get_one_relationship(self.r_db, relationship = self.rel_class.get_one_relationship(self.r_db,
self.person, self.person,
center_person) center_person)