Summary:
The limit section privileges on a TeacherEnrollment for a course is overwritten when observing a student in the same course but different section. Even when the student's enrollment has limit section privileges.
Steps to reproduce:
- Enroll a teacher in a section of course with limit section privileges set to true
- Enroll a student in a different section of the same course with limit section privileges set to true
- Set up the teacher as an observer of the student (for example the teacher teaches a section of a course but has a son or daughter taking a different section of the same course)
- Confirm the teacher can now view all sections
Expected behavior:
The teacher can observer the student and only see their enrolled section
Actual behavior:
Teacher is no longer limited to section and can see all sections.
Additional notes: