diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-12-31 15:11:36 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-12-31 15:11:36 +0000 |
| commit | 7425752495a2f1ede1f553365cfdde864f431875 (patch) | |
| tree | be15a702f51bfe0371efb3c56840732430934f95 /includes | |
| parent | 14a0f010ab89c7225193f9fcfa8e7ff1e659ac6e (diff) | |
| download | webtrees-7425752495a2f1ede1f553365cfdde864f431875.tar.gz webtrees-7425752495a2f1ede1f553365cfdde864f431875.tar.bz2 webtrees-7425752495a2f1ede1f553365cfdde864f431875.zip | |
Fix: undefined $this->canedit and $this->userCanEdit()
Replace both with $this->indi->canEdit()
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/controllers/individual_ctrl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/controllers/individual_ctrl.php b/includes/controllers/individual_ctrl.php index 0a74cce940..e556bf0583 100644 --- a/includes/controllers/individual_ctrl.php +++ b/includes/controllers/individual_ctrl.php @@ -324,7 +324,7 @@ class IndividualController extends BaseController { echo '<div id="name1">'; echo '<dl><dt class="label">', i18n::translate('Name'), '</dt>'; echo '<dd class="field">', PrintReady($dummy->getFullName()); - if ($this->userCanEdit() && !strpos($factrec, 'WT_OLD') && $this->name_count > 1) { + if ($this->indi->canEdit() && !strpos($factrec, 'WT_OLD') && $this->name_count > 1) { echo " <a href=\"javascript:;\" class=\"font9\" onclick=\"edit_name('".$this->pid."', ".$linenum."); return false;\">", i18n::translate('Edit'), "</a> | "; echo "<a class=\"font9\" href=\"javascript:;\" onclick=\"delete_record('".$this->pid."', ".$linenum."); return false;\">", i18n::translate('Delete'), "</a>"; } @@ -400,7 +400,7 @@ class IndividualController extends BaseController { break; } if ($this->SEX_COUNT>1) { - if ($this->userCanEdit() && strpos($factrec, "WT_OLD")===false) { + if ($this->indi->canEdit() && strpos($factrec, "WT_OLD")===false) { if ($event->getLineNumber()=="new") { echo "<a class=\"font9\" href=\"javascript:;\" onclick=\"add_new_record('".$this->pid."', 'SEX'); return false;\">".i18n::translate('Edit')."</a>"; } else { |
