Skip to content

Build ParentStudentAssignment model + re-open parent dashboards/analytics #68

Description

@franciszver

Follow-up from #59 / PR #66.

Parent-scoped routes (/dashboards/parent/*, /analytics/advanced/engagement/{user_id}) were locked to role=admin in #66 because no parent↔student relationship model exists, so 'a parent sees only their own child' could not be enforced.

Work:

  1. Add a ParentStudentAssignment model (mirror TutorStudentAssignment) + migration.
  2. Decision needed: how does a parent↔student link get created — admin-provisioned, invite code, or self-service with verification?
  3. Extend assert_can_access_student (or add a parent branch) to allow a parent access to their linked students.
  4. Restore parent on those route role gates and replace the admin-only lock.
  5. Re-open _ALLOWED_REGISTER_ROLES to include parent only if self-registration is desired given the linkage flow chosen in (2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions