Skip to content

Commit

Permalink
MDL-76419 calendar: Respect $CFG->autologinguests on frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnl committed Sep 4, 2023
1 parent 206c3a6 commit 54b6d96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion calendar/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
$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);

Expand Down

0 comments on commit 54b6d96

Please sign in to comment.