From 38eaf9f3653c1a12ba25b8a5ad69c9038b5e1234 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 11 Aug 2011 17:59:33 +1200 Subject: [PATCH] MDL-4561 allow guests to access metacourses with an enrolment key. --- course/enrol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/enrol.php b/course/enrol.php index 0ebb95e60aa26..14146b25c2913 100644 --- a/course/enrol.php +++ b/course/enrol.php @@ -53,7 +53,7 @@ } /// Check if the course is a meta course (bug 5734) - if ($course->metacourse) { + if ($course->metacourse && !($course->guest == 2 && isguestuser())) { print_header_simple(); notice(get_string('coursenotaccessible'), "$CFG->wwwroot/index.php"); }