diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-06-16 17:55:25 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-06-16 17:55:25 +0100 |
| commit | a19abf8ec31c156fce28647293e5f0515713a8a4 (patch) | |
| tree | fc3c2c77b994655e64ee497f2ddefc91b413fca7 | |
| parent | 6765725587bce7e3b379fc9bfba89b92bda971f2 (diff) | |
| download | webtrees-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.php | 2 |
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 = ''; |
