Merge branch 'MDL-76419-master' of https://github.com/rjnl/moodle

This commit is contained in:
Paul Holden 2023-09-05 17:18:30 +01:00
commit fd968053ec
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -114,7 +114,9 @@ if ($iscoursecalendar && !empty($courseid)) {
$PAGE->set_context(context_system::instance());
}
require_login($course, false);
// Auto log in guests on frontpage.
$autologinguest = !$iscoursecalendar;
require_login($course, $autologinguest);
$calendar = calendar_information::create($time, $courseid, $categoryid);