fix(qa): 周报邮件读取鉴权与测试隔离
build / build (push) Failing after 17s

只读查询不再要求同源操作意图,写操作仍需;前端改为直接消费已解包的 data。
调度集成测试按租户清理并要求一次性测试库,避免误清正式数据。
This commit is contained in:
hermes
2026-10-26 09:57:41 +08:00
parent 6816289552
commit 5aa32492de
3 changed files with 139 additions and 8 deletions
+4 -1
View File
@@ -77,7 +77,10 @@ func qaWeeklyMailSettings(w http.ResponseWriter, r *http.Request, c Config) {
}
func qaWeeklyMailConfirm(w http.ResponseWriter, r *http.Request, c Config) {
if !authorizeQAOps(w, r) || !authorizeQAIntent(w, r, "qa-weekly-mail") {
if !authorizeQAOps(w, r) {
return
}
if r.Method != http.MethodGet && !authorizeQAIntent(w, r, "qa-weekly-mail") {
return
}
store, ok := c.QAWeeklyMail.(weeklyMailStore)