summaryrefslogtreecommitdiff
path: root/family.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-06-28 10:56:25 +0000
committerfisharebest <fisharebest@gmail.com>2011-06-28 10:56:25 +0000
commit1500fd2b7a7b3c1ae77201b4377ce5375d84608a (patch)
treea0f12255eed6fb2323a0d3ad24aa07096057842d /family.php
parenta0666294dd078c5ea73be6128cf6c2e5ac8b679d (diff)
downloadwebtrees-1500fd2b7a7b3c1ae77201b4377ce5375d84608a.tar.gz
webtrees-1500fd2b7a7b3c1ae77201b4377ce5375d84608a.tar.bz2
webtrees-1500fd2b7a7b3c1ae77201b4377ce5375d84608a.zip
Clarify privacy on family.php page: Only attempt to show children/parents/grandparent information if the SHOW_PRIVATE_RELATIONSHIPS option is enabled.
Diffstat (limited to 'family.php')
-rw-r--r--family.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/family.php b/family.php
index 37185a7ec7..5a9ddfeb55 100644
--- a/family.php
+++ b/family.php
@@ -74,6 +74,10 @@ if ($controller->family && $controller->family->canDisplayDetails()) {
} elseif ($controller->reject_success) {
echo '<p class="ui-state-highlight">', WT_I18N::translate('The changes have been rejected.'), '</p>';
}
+} elseif ($controller->family && $SHOW_PRIVATE_RELATIONSHIPS) {
+ print_header($controller->getPageTitle());
+ // Continue - to display the children/parents/grandparents.
+ // We'll check for showing the details again later
} else {
print_header(WT_I18N::translate('Family'));
echo '<p class="ui-state-error">', WT_I18N::translate('This family does not exist or you do not have permission to view it.'), '</p>';
@@ -151,8 +155,13 @@ $show_full = "1";
</tr>
<tr>
<td colspan="2">
- <br /><hr />
- <?php print_family_facts($controller->family); ?>
+ <?php
+ if ($controller->family->canDisplayDetails()) {
+ print_family_facts($controller->family);
+ } else {
+ echo '<p class="ui-state-highlight">', WT_I18N::translate('The details of this family are private.'), '</p>';
+ }
+ ?>
</td>
</tr>
</table>