calendar MDL-19940 Don't require login for site calendar when forcelogin is false

This commit is contained in:
moodler 2009-10-01 07:04:18 +00:00
parent 7e13493675
commit 9b610c986c

View File

@ -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();