Skip to content

TeacherEnrollment's limit section privileges for a course is overwritten when observing a student in the same course but different section #2245

@cgravatt

Description

@cgravatt

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:

  1. Enroll a teacher in a section of course with limit section privileges set to true
  2. Enroll a student in a different section of the same course with limit section privileges set to true
  3. 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)
  4. 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions