mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
MDL-78152 mod_book: set permissions required for page editing.
This commit is contained in:
parent
176a323b4e
commit
48963bb7a7
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user