Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13952

"enrol_ldap_autocreate" create courses, even if "enrol_ldap_autocreate" is set to "no"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.11, 1.9.7, 2.0
    • 1.8.4
    • Course
    • None
    • Debian Linux 4.0, PHP Version 4.4.4-8, Apache 1.3.34
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      "enrol_ldap_autocreate" create courses, even if "enrol_ldap_autocreate" is set to "no"

      so i have done the following changes on enrol/ldap/enrol.php:
      from:
      if (!is_object($course_obj){
      // ok, now then let's create it! print "Creating Course $idnumber...";

      to:
      if (!is_object($course_obj) && $CFG->enrol_ldap_autocreate) {
      // ok, now then let's create it! print "Creating Course $idnumber...";

      it's this right? is this a bug?

      Regards
      Bruno

            dougiamas Martin Dougiamas
            brunoz Bruno Zuber (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.