summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-07-05 23:13:07 +0000
committerfisharebest <fisharebest@gmail.com>2013-07-05 23:13:07 +0000
commit6c8e52cffdb8ff42a7c08f7983d7795f43f0d9b6 (patch)
treea595f029ced17a94277044459e03b52f60a4ea82
parentdf17cb9eab0626e7875b8ae304177cc601579699 (diff)
downloadwebtrees-6c8e52cffdb8ff42a7c08f7983d7795f43f0d9b6.tar.gz
webtrees-6c8e52cffdb8ff42a7c08f7983d7795f43f0d9b6.tar.bz2
webtrees-6c8e52cffdb8ff42a7c08f7983d7795f43f0d9b6.zip
Do not show family media facts on the individual/facts+events tab
-rw-r--r--library/WT/Fact.php3
-rw-r--r--modules_v3/personal_facts/module.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/library/WT/Fact.php b/library/WT/Fact.php
index 7c70e286d5..7f4c5f3282 100644
--- a/library/WT/Fact.php
+++ b/library/WT/Fact.php
@@ -104,7 +104,7 @@ class WT_Fact {
// Do the privacy rules allow us to display this fact to the current user
function canShow($access_level=WT_USER_ACCESS_LEVEL) {
- // TODO - use the privacy settings for $ged_id, not the default gedcom.
+ // TODO - use the privacy settings for $this->gedcom_id, not the default gedcom.
global $person_facts, $global_facts;
// Does this record have an explicit RESN?
@@ -119,6 +119,7 @@ class WT_Fact {
}
// Does this record have a default RESN?
+ if (!$this->parent) die($eek);
$xref = $this->parent->getXref();
if (isset($person_facts[$xref][$this->tag])) {
return $person_facts[$xref][$this->tag] >= $access_level;
diff --git a/modules_v3/personal_facts/module.php b/modules_v3/personal_facts/module.php
index 45d4028c99..27de6d1cda 100644
--- a/modules_v3/personal_facts/module.php
+++ b/modules_v3/personal_facts/module.php
@@ -81,6 +81,7 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab {
switch ($fact->getTag()) {
case 'SOUR':
case 'NOTE':
+ case 'OBJE':
case 'CHAN':
case '_UID':
case 'RIN':