Skip to content

Commit

Permalink
Added edit all check.
Browse files Browse the repository at this point in the history
  • Loading branch information
drachels committed Oct 16, 2020
1 parent 218caad commit ac171f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
Expand Down

0 comments on commit ac171f2

Please sign in to comment.