95625d6711a7a9ae509993009dfd51b3a7ce107a
走查题单进度时撞到 `/problem-sets/:id/user-progress` 对学生 403 —— 那是**正确**的 (它是给教师看全班进度的),但守卫又写在 handler 体内。评审的 M3 只列了 3 处, 按同一模式扫全仓,还有 2 处: content.ts POST /messages isSuperAdmin problemset.ts GET /problem-sets/:id/user-progress isTeacherOrAbove 改用 requireSuperAdmin / requireTeacher,理由同 M3:守卫要能从注册行上看出来, 不然下一个人加同类端点容易漏掉那个 if。 实测档位没变:学生两条都 403,教师看全班进度 200。 路由遮蔽检查仍然干净。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
58.5%
Vue
39.6%
Shell
1.3%
Dockerfile
0.5%