Affects Version/s: 2.1.4
Fix Version/s: None
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
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.