Skip to content

Commit f6519a3

Browse files
authored
Merge pull request #115 from lucaboesch/codechecker_501
Code checker and README.md badge.
2 parents dbb636f + 29c00b5 commit f6519a3

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Subcourse module for Moodle
22
===========================
33

4-
![Moodle Plugin CI](https://github.com/catalyst/moodle-mod_subcourse/workflows/Moodle%20Plugin%20CI/badge.svg)
4+
[![ci](https://github.com/catalyst/moodle-mod_subcourse/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/catalyst/moodle-mod_subcourse/actions/workflows/moodle-ci.yml)
55

66
This Moodle module provides very simple yet useful functionality. When added into a
77
course, it behaves as a graded activity. The grade for each student is took from a

index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@
2525
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
2626

2727
$id = required_param('id', PARAM_INT);
28-
\core_courseformat\activityoverviewbase::redirect_to_overview_page($id, 'subcourse');
28+
$course = $DB->get_record('course', ['id' => $id], '*', MUST_EXIST);
29+
30+
require_login($course);
2931

32+
\core_courseformat\activityoverviewbase::redirect_to_overview_page($id, 'subcourse');

0 commit comments

Comments
 (0)