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

Users are not unenrolled automatically after enrolment duration

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.1.4
    • None
    • Enrolments
    • MOODLE_21_STABLE
    • Hide

      1. Add an manual enrol instance to course
      2. Enrol an user through it and set the enrolment duration as small as possible
      3. Waiting for the expiration of enrolment (Or change database/system time)
      4. Run cron
      5. The user should be unenrolled

      Show
      1. Add an manual enrol instance to course 2. Enrol an user through it and set the enrolment duration as small as possible 3. Waiting for the expiration of enrolment (Or change database/system time) 4. Run cron 5. The user should be unenrolled

    Description

      http://docs.moodle.org/21/en/Unenrolment says:

      The enrolment duration, which unenrols students after the specified time has elapsed

      But in my site, there are lots of students whose enrolment duration has been expired for several months are not unenolled. The enrol method is manual.

      And I greped 'enrolperiod', found no code using it to judge whether a user should be unenrolled. Am I mistake?

      P.S. My cronjob works well.

      Attachments

        Issue Links

          Activity

            People

              tsala Helen Foster
              sunner Sunner Sun
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: