diff --git a/view.php b/view.php index e71e399..e29e28c 100644 --- a/view.php +++ b/view.php @@ -368,7 +368,8 @@ $options['firstkey'] = $entry->id; $url = new moodle_url('/mod/diary/edit.php', $options); // 20200901 If editing time has expired, remove the edit toolbutton from the title. - if ($timenow < $timefinish) { + // 20201015 Enable/disable check of the edit old entries editing tool. + if ($timenow < $timefinish && $diary->editall) { $editthisentry = html_writer::link($url, $output->pix_icon('i/edit', get_string('editthisentry', 'diary')),