MDL-78152 mod_book: set permissions required for page editing.

This commit is contained in:
Paul Holden
2023-05-09 12:11:26 +01:00
parent 29a21ee986
commit 3493d9ebc3
+2
View File
@@ -96,6 +96,8 @@ $pagetitle = $book->name;
if ($chapter = $DB->get_record('book_chapters', ['id' => $chapterid, 'bookid' => $book->id])) {
$pagetitle .= ": {$chapter->title}";
}
$PAGE->set_other_editing_capability('mod/book:edit');
$PAGE->set_title($pagetitle);
$PAGE->set_heading($course->fullname);
$PAGE->add_body_class('limitedwidth');