Open cgravatt opened 10 months ago
I'm happy to contribute a PR to resolve this, but I'm not sure which direction would be preferred. I can see two possibilities.
Option 1: Update create_linked_enrollment_for(observer) to copy over the limit_section_privileges value so that ObserverEnrollments are created with a limit_section_privileges value that matches the student
Option 2: Update section_visibilities_for on the course model to exclude enrollments of type ObserverEnrollment from consideration.
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:
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: