At our school, teachers do not enrol students in courses.
So, I made a role "Office Manager" by copying "Editing teacher", and adding some capabilities I figured she needed:
- AUTHORIZE - ALL
- CATEGORY ENROLMENTS
I assigned this role in the System context for our Office Manager. Therefore she also got the role in a course.
So far so good, but although she could enrol users in that course, she did not get the capability to assign them roles (i.e. a student could enter the course but would not have the role of student in it). In the interface for enrolling users in the course, the dropdown menu for roles is empty.
I double checked that her role had the capability "Allow_role_assignments" in the context of the course. It did have it in the system context and in the context of the individual course as well.
I am stumped. If the role has the same capabilities as Teacher (and then some), plus this one capability needed to assign roles in a course (verified by the permissions check), why can't she?
Side note: At the same time, I want to restrict the teacher role to NOT be able to enrol and unenrol students, so if someone knows how to do that, I'd be very grateful!