At most universities that sort of thing is OK but the lecturer has to tell the head of department, so they don't find themselves marking the student's exams... This is quite a good deterrent: having to go to the Professor and explain you are bonking half your seminar group is a tad hard to do. Unless he's doing it too, of course.
Tim