diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-05 23:08:24 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-05 23:08:24 +0000 |
| commit | df17cb9eab0626e7875b8ae304177cc601579699 (patch) | |
| tree | fd410004c1d3f782700afb306069504bb099a51f /action.php | |
| parent | 84a096530a4e36bb09c7b1db6b878d9ef4825570 (diff) | |
| download | webtrees-df17cb9eab0626e7875b8ae304177cc601579699.tar.gz webtrees-df17cb9eab0626e7875b8ae304177cc601579699.tar.bz2 webtrees-df17cb9eab0626e7875b8ae304177cc601579699.zip | |
The right place to check for privacy on facts is when we fetch them for viewing.
Diffstat (limited to 'action.php')
| -rw-r--r-- | action.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/action.php b/action.php index 084685aacb..7714c8a440 100644 --- a/action.php +++ b/action.php @@ -104,7 +104,7 @@ case 'delete-fact': $record = WT_GedcomRecord::getInstance($xref); if ($record && $record->canEdit()) { foreach ($record->getFacts() as $fact) { - if ($fact->getfactId() == $fact_id && $fact->canShow() && $fact->canEdit()) { + if ($fact->getfactId() == $fact_id && $$fact->canEdit()) { $record->updateFact($fact_id, '', true); break 2; } |
