FIxes to cope with this case:
FIxes to cope with this case:

  - student authenticates
  - teacher enrols the student manually
  - student tries to enter course

http://moodle.org/mod/forum/discuss.php?d=4529#20493

dilawar/moodle