Files
DeepTutor/tests/multi_user
larryluozhang 0c2666c010 fix(learner): complete surface map for first-party learner screens + flip preset on restrictions assignment (#1222)
Rebased onto current main (v1.6.9 layout): _learning_surface_for_path now
lives in deeptutor/api/routers/auth.py; change content unchanged.

- map /api/mastery-paths/* to chat (learner's own per-user progress data)
- map GET/HEAD/OPTIONS /api/knowledge-bases* to reading (browse-only;
  mutations still default-deny)
- pass request.method into the surface lookup
- put_guardian_restrictions: when the account has no learning_policy yet,
  seed the default learner grant and flip the preset to learner, avoiding
  the standard-preset+policy mix that renders the admin shell and 403-storms
- regression tests: tests/multi_user/test_learning_surface_map.py (22 tests)
2026-09-22 00:57:28 +08:00
..
2026-09-21 02:30:40 +08:00
2026-06-11 20:03:34 +08:00
2026-09-06 13:46:29 +08:00
2026-09-21 02:30:40 +08:00
2026-05-12 02:20:30 +08:00
2026-09-21 02:30:40 +08:00
2026-08-07 22:28:33 +08:00
2026-09-21 02:30:40 +08:00