Skip to content

Commit 98aac89

Browse files
committed
Don't link to sections user cannot see (MDL-86565)
1 parent 37c80d9 commit 98aac89

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

classes/output/courseformat/state/section.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public function __construct(course_format $format, section_info $section) {
5555
public function export_for_template(renderer_base $output): stdClass {
5656
$data = parent::export_for_template($output);
5757
$format = $this->format;
58-
$course = $format->get_course();
5958
$section = $this->section;
60-
$data->sectionurl = course_get_url($course, $section)->out(false);
6159
$data->component = $section->component ?? null;
6260
if ($section->component) {
6361
return $data;

0 commit comments

Comments
 (0)