I am administrator in a moodle site where all teachers have a non-editing role. However I need to add a capability to some non-editing teachers to assign activities to certain groups of students. I added access restrictions to sections of the course depending on their role.
I have created 2 new roles. TeacherX , StudentX
TeacherX ( using a preset of non-editing teacher) adding the capability to assign 2 roles: Student(with access),StudentX(no access).
When I logged in as TeacherX I could assign these 2 roles under the sections of the course. So I tried to assign the role Student to users who had enrolled as StudentX. I tried with different accounts(Teacher, Manager, Administrator) and it didn't work. The only way X to change the role of a student is as an administrator in course administration/users/enrolled users.
How can I fix that? Do you have any other suggestions?