summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-06-23 08:30:23 +0000
committerfisharebest <fisharebest@gmail.com>2013-06-23 08:30:23 +0000
commitf50298b01b1d82a0ef453650ae66177154b99b60 (patch)
treebf7a3b99c4d26cab8e6a84c33c5314fbf75cd04c /library
parentddb562033e816237c040b4843392862f9fe07eaf (diff)
downloadwebtrees-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.php2
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: