From 3e29781d1174e44770f189ccd7deaa8c5442ec40 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 3 May 2010 19:50:57 +0000 Subject: [PATCH] MDL-21655 fixed regression which prevented guests to enter access key --- course/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/enrol.php b/course/enrol.php index bd1ed4bc008..f7808982a8d 100644 --- a/course/enrol.php +++ b/course/enrol.php @@ -38,7 +38,7 @@ if ($loginasguest !== 0) { } $PAGE->set_url($url); -if (!isloggedin() or isguestuser()) { +if (!isloggedin()) { // do not use require_login here because we are usually comming from it redirect(get_login_url()); }