From: moodler Date: Tue, 9 Mar 2004 12:40:30 +0000 (+0000) Subject: Don't check the login for the site-level course X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dcf9cea2a1bccc2434a2188ada7dba3b64af0a38;p=moodle.git Don't check the login for the site-level course --- diff --git a/course/loginas.php b/course/loginas.php index d5eef4e8e6..58e51d6a5b 100644 --- a/course/loginas.php +++ b/course/loginas.php @@ -12,7 +12,9 @@ error("Course ID was incorrect"); } - require_login($course->id); + if ($course->category) { + require_login($course->id); + } if ($return and $USER->realuser) { $USER = get_user_info_from_db("id", $USER->realuser);