summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-06-16 17:55:25 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-06-16 17:55:25 +0100
commita19abf8ec31c156fce28647293e5f0515713a8a4 (patch)
treefc3c2c77b994655e64ee497f2ddefc91b413fca7
parent6765725587bce7e3b379fc9bfba89b92bda971f2 (diff)
downloadwebtrees-a19abf8ec31c156fce28647293e5f0515713a8a4.tar.gz
webtrees-a19abf8ec31c156fce28647293e5f0515713a8a4.tar.bz2
webtrees-a19abf8ec31c156fce28647293e5f0515713a8a4.zip
Fix: should not be able to edit pending deleted sex records
-rw-r--r--app/Http/RequestHandlers/IndividualPage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/RequestHandlers/IndividualPage.php b/app/Http/RequestHandlers/IndividualPage.php
index b0f0c1c288..87e7ccfc48 100644
--- a/app/Http/RequestHandlers/IndividualPage.php
+++ b/app/Http/RequestHandlers/IndividualPage.php
@@ -367,7 +367,7 @@ class IndividualPage implements RequestHandlerInterface
$container_class .= ' wt-new';
}
- if ($individual->canEdit()) {
+ if ($fact->canEdit()) {
$edit_links = '<a class="btn btn-link" href="' . e(route(EditFactPage::class, ['xref' => $individual->xref(), 'fact_id' => $fact->id(), 'tree' => $individual->tree()->name()])) . '" title="' . I18N::translate('Edit the gender') . '">' . view('icons/edit') . '<span class="sr-only">' . I18N::translate('Edit the gender') . '</span></a>';
} else {
$edit_links = '';