mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
Not visible courses don't cause unenrolment under LDAP anymore. Credit goes to Iñaki Arenaza. MDL-14097 ; merged from 19_STABLE
This commit is contained in:
parent
6558e9ab2d
commit
d936580e1f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user