Permalink
Browse files

MDL-4561 allow guests to access metacourses with an enrolment key.

  • Loading branch information...
1 parent 0795088 commit 38eaf9f3653c1a12ba25b8a5ad69c9038b5e1234 @danmarsden danmarsden committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/enrol.php
View
2 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");
}

0 comments on commit 38eaf9f

Please sign in to comment.