course completion: MDL-22797 Updating to use user_enrolments instead of the