mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
Merge branch 'MDL-76419-master' of https://github.com/rjnl/moodle
This commit is contained in:
commit
fd968053ec
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user