mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
calendar MDL-19940 Don't require login for site calendar when forcelogin is false
This commit is contained in:
parent
7e13493675
commit
9b610c986c
@ -72,7 +72,7 @@ if ($yr !== 0) {
|
||||
}
|
||||
$PAGE->set_url($url);
|
||||
|
||||
if ($courseid) {
|
||||
if ($courseid && $courseid != SITEID) {
|
||||
require_login($courseid);
|
||||
} else if ($CFG->forcelogin) {
|
||||
require_login();
|
||||
|
Loading…
x
Reference in New Issue
Block a user