diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index d5795e3..b10c1d5 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -75,12 +75,6 @@ function setup_enrolments(&$user) { } else { error_log("[ENROL_LDAP] User $user->username enrolled to a nonexistant course $course_ext_id \n"); } - } else { // the course object exists before we call... - if ($course_obj->visible==0) { - // non-visible courses don't show up in the enrolled - // array, so we should skip them -- - continue; - } } // deal with enrolment in the moodle db