diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-06-23 08:30:23 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-06-23 08:30:23 +0000 |
| commit | f50298b01b1d82a0ef453650ae66177154b99b60 (patch) | |
| tree | bf7a3b99c4d26cab8e6a84c33c5314fbf75cd04c /library | |
| parent | ddb562033e816237c040b4843392862f9fe07eaf (diff) | |
| download | webtrees-f50298b01b1d82a0ef453650ae66177154b99b60.tar.gz webtrees-f50298b01b1d82a0ef453650ae66177154b99b60.tar.bz2 webtrees-f50298b01b1d82a0ef453650ae66177154b99b60.zip | |
Relationship privacy - calculate relationship from person to self (not self to person). The "far" part of the tree is more likely to be sparser than the "near" part of the tree, and hence have fewer individuals within N relationship steps.
Diffstat (limited to 'library')
| -rw-r--r-- | library/WT/Person.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Person.php b/library/WT/Person.php index 3c5da25bf1..5b82ed467e 100644 --- a/library/WT/Person.php +++ b/library/WT/Person.php @@ -97,7 +97,7 @@ class WT_Person extends WT_GedcomRecord { if (WT_USER_GEDCOM_ID && WT_USER_PATH_LENGTH && $this->getGedId()==WT_GED_ID && $access_level=WT_USER_ACCESS_LEVEL) { $self = WT_Person::getInstance(WT_USER_GEDCOM_ID); if ($self) { - return get_relationship($self, $this, true, WT_USER_PATH_LENGTH)!==false; + return get_relationship($this, $self, true, WT_USER_PATH_LENGTH)!==false; } } // No restriction found - show living people to members only: |
