Hi Yu,
I have tested this until I found that this is still not in 1.7! That's why I couldn't make it work... I found it only in 1.162.2.5, not in 1.142.2.10...
I can't think I'm the only one having problems with this kind of hidden assignments, could this be solved for the 1.7 branch?
Regarding your message dated 3/12, the solution with different role names is not good enough since I can't create roles at course level. I mean that EVERY course sitewide would see the roles for the others. Let me explain this: suppose I have Course A, where they want to call their teachers "Facilitators" and assign them to "Groups". So I would have a role named "Facilitator for Group 1", "Facilitator for Group 2" and so on. Now suppose I have course B, where they use the "Teacher" word. In this case they would have "Teacher for Group 1", "Teacher for Group 2" and so on.
I would face the following problems:
1) I would have to define this roles at site level.
2) Everyone on Course A would see a combo box with the Roles "Teacher for Group x", which belong to Course B.
3) The interface for defining roles does not have a "Copy" or "Clone Role" button, so all of this multiple "fake roles" (I mean fake because they would have the same capabilities) would have to be built through a lenghty process.
4) This roles could only be built by an Administrator (they are site level).
5) The sort wouldn't work, since I would be sorting the roles for EVERY course, not the roles within a single course. I would have to sort "Teacher for Group 1", "Facilitator for Group 1", "Headmaster", "Course Director", etc., all belonging to different courses.
I think this subject needs further discussion, maybe even moving the subject to moodle.org forums. What do you think?
TIA,
Pablo
Not sure if this is the same issue but:
When a course is hidden from students and a user has the role of teacher (according to course roles) that person does not see the course as one they teach and can only gain access to the course when the course is made available to students.