We've been encountering the same weird issue a couple of times as some teachers go to the course participants list, click the "select all users" button and then choose the "delete all user registrations" option in the list. They usually do this in order to unenrol students from the past year before they can register new students for the current year, (or so they think, at least). However, in doing so, they get expelled from their own courses and are then unable to access and edit them until we re-register them manually as teachers in their own course(s).
I have tried setting the "enrol/manual:unenrolself" capacity to "forbidden" for teacher roles, however, this won't work and after testing, it turns out teacher roles are still able to unenrol themselves from their own courses ! Any idea on what is going wrong here and how we may solve this issue ?
Thanks for helping,